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

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -