RESTful Implementation and Clean URLs |
[eluser]Mr Lazy[/eluser]
Hi, I was hoping that there was some kind of solution to this problem. I am using Phil Sturgeon's excellent RESTful Server implementation, and it is working very well. I was just wondering if there was a clever way of removing the index.php from the URLs, so: Code: http://localhost/index.php/api/admin/users becomes: Code: http://localhost/api/admin/users I know how to do this following this guide: mod_rewrite but this only works for GET requests by manipulating the URL. When I try it using the POST, PUT or DELETE scopes the rewrite does not work and I get a 404 error. Can anyone suggest a way of doing this? Thanks in advance, Stephen Edit: Sorry, I have just realised I have posted this in the wrong forum.. apologises. If someone is able to move it to "General CodeIgniter Discussion" I would be very grateful.
[eluser]Davide Bellini[/eluser]
Have you try to follow Codegniter Guide ? http://ellislab.com/codeigniter/user-gui.../urls.html
[eluser]Mr Lazy[/eluser]
That is the guide I followed... but as I said that when the request is in the POST, PUT or DELETE scopes, the mod_rewrite does not work. Maybe I have to live with the index.php. |
Welcome Guest, Not a member yet? Register Sign In |