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

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -