PHP +CodeIgniter , RestFul Url without MVC? -


I will use CodeIgniter in my new project, but I'm just using the helpper function, Can run as CodeIgniter is a strange URL function but not in MVC?

Or can I be done by Apache rewrite mode instead?

You use something like that in your .htaccess file :

Apache rewrites will be more suitable if you do not need to use CodeIgniter.

P>
  RewriteCond% {REQUEST_FILENAME} at RewriteEngine! -f rewrite code% {REQUEST_FILENAME}! -d RectitRule ^ (. *) $ Index.php? Page = $ 1 [PT]  

Then you http://yoursite.com/whatever and $ _ GET ['page'] you can use equals .


Comments