Draz, on 23 March 2012 - 05:13 PM, said:
Hi,
I enabled the url manager and the index.php part in the url gets removed and works fin
my .htacsses file
the url manager works fine ut index.php doesn't go away in the url
so I added when I have showScriptName set to false in my config/main.php file
but now I get a 404 error whenever I click a link(because it removed index.php from the url)
I enabled the url manager and the index.php part in the url gets removed and works fin
my .htacsses file
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php)
# otherwise forward it to index.php
RewriteRule ^(.+)$ index.php?$1 [PT,L,QSA]
the url manager works fine ut index.php doesn't go away in the url
so I added when I have showScriptName set to false in my config/main.php file
'urlManager'=>array( 'urlFormat'=>'path', 'showScriptName'=>false, 'rules'=>array( '<controller:\w+>/<id:\d+>'=>'<controller>/view', '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', '<controller:\w+>/<action:\w+>'=>'<controller>/<action>', ),
but now I get a 404 error whenever I click a link(because it removed index.php from the url)
Hi Draz,
I am getting the same error. Did you resolve your 404 error?? if yes please let me know the solution.
Thank you.

Help












