helpe me please rewrite mod |
[eluser]MrAmine[/eluser]
Just started with CI, I love it. Im trying to figure out how to get rid of the filename from the url. I saw a bunch of posts, but I cant seem to get any of them to work, and Im sure you guys are sick of it but… My apps are setup like this site.com/page.php/whatever Id just like site.com/whatever is that possible without messing up my apps? How, with routes or mod_rewrite? How could i do something like: whatever.com/news/index/34 whatever.com/page.php/news/index/34
[eluser]eoinmcg[/eluser]
have you read the wiki article? http://codeigniter.com/wiki/mod_rewrite/ in step 1 .htaccess file, simply substitue index.php with page.php then (i'm assuming your using apache) you should add this to your .htaccess DirectoryIndex page.php
[eluser]toopay[/eluser]
So, you rename the index.php into page.php, yes? If so, your htaccess is should be something like : Code: RewriteEngine On And, if you have further issues about this, can you post elsewhere? Because this section is for Bug. Just try to keep our forums more manageable for other users when they want to read something, okay? ;-) |
Welcome Guest, Not a member yet? Register Sign In |