Just a note: If you have to use IIS and CakePHP together, however, you don’t have any privileges to the setting on production server, especially on shared hosting server, this is for you.

Just uncomment this line

//Configure::write('App.baseUrl', env('SCRIPT_NAME'));

And change to

Configure::write('App.baseUrl', env('SCRIPT_NAME')."?");

And the url will become pretty, at lease not ugly.

/context/index.php?/controller/action/param1/param2

Version: 1.2.x

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>