Here is how to remove index.php from the URL: search for "Using search engine and user friendly URLs" on the wiki documentation of the yii framework homepage
@fragfoo To remove index.php from the URLs you need to do two things:
1) in main.php where you see 'urlFormat'=>'path' (in the 'urlManager' section), add another parameter: 'showScriptName' => false, this will remove index.php from the links
2) In the webroot folder of your app, add a .htaccess rule (for Apache, IIS will need different settings) with a rewrite rule of: RewriteRule . index.php This will help your web server still call index.php
how to modify this generated script because i have some different actions in every case from my database. thank you.
AIandRIN 3 weeks ago in playlist More videos from IterativeRedux
Here is how to remove index.php from the URL: search for "Using search engine and user friendly URLs" on the wiki documentation of the yii framework homepage
fragfoo 7 months ago
@fragfoo To remove index.php from the URLs you need to do two things:
1) in main.php where you see 'urlFormat'=>'path' (in the 'urlManager' section), add another parameter: 'showScriptName' => false, this will remove index.php from the links
2) In the webroot folder of your app, add a .htaccess rule (for Apache, IIS will need different settings) with a rewrite rule of: RewriteRule . index.php This will help your web server still call index.php
johnhousser 4 months ago in playlist More videos from IterativeRedux
and how do we actually do it (no index.php)
dreznik 7 months ago
at 9:54, it leaves out index.php removal and skips ahead.
scotnery 8 months ago
@scotnery True, how do you do it?
fragfoo 7 months ago