.htaccess - pretty url not working -
below main.php
'urlmanager' => [ 'enableprettyurl' => true, 'showscriptname' => false, 'rules' => [ '<controller:\w+>/<id:\d+>' => '<controller>/view', '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>', '<controller:\w+>/<action:\w+>' => '<controller>/<action>', ], ],
i have enabled pretty url (i think), getting lot of 404's, like
192.168.1.3/~user/urshow/frontend/web/movies/movies_all
have work fine if 192.168.1.3/~user/urshow/frontend/web/index.php?r=movies/movies_all
, no links working worked perfect previously.
try this... create .htaccess
file in root folder , add following code
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond $1 !^(index\.php) rewriterule ^(.+)$ index.php?$1 [pt,l,qsa]
may you..
Comments
Post a Comment