Search code examples
phpmod-rewriteframeworkslighttpdrecess

Getting rid of index.php in the URL when using recess framework and lighttpd


I am using the recess php framework with lighttpd

Does anyone know how I can use the shorter urls of:

http://www.myserver.com/recess

Instead of:

http://www.myserver.com/index.php/recess

The recess readme file says that if I have mod_rewrite I can use the shorter url:

-- "Do you have mod_rewrite?

-- Yes: Open your browser to the location you unzipped

-- No: Open your browser to the location you unzipped followed by index.php"

I do have mod_rewrite enabled on lighttpd and i have removed the index.php but I get a 404.

Do I need any special rules in my lighttpd.conf?


Solution

  • Check if the relevant page from CakePHP documentation can help you. There's a section on how to setup lighttpd and prettify URLs.