rewrite - Remove html extension from urls return error 404 in yii -
my current user's page urls:
http://mydomain.com/user/oxaefrta.html
in order achieve these urls, set line in urlmanager:
'user/<aid:\w+>'=>array('/users/profile/view', 'urlsuffix'=>'.html')
when attempt remove 'urlsuffix'=>'.html'
, turn out error 404.
how deal issue?
//edit
my .htaccess file:
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l]
Comments
Post a Comment