0
我需要Apache mod-rewrite
在笨改写笨URL与htaccess的
页名称example.com/pages/page1
重写URL,我需要通过example.com/welcome.html
重新命名它,我在htaccess
文件
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^pages/page1$ welcome.html [PT,L]
它不起作用。我怎样才能做到这一点?。
所以,如果你直接去'example.com/welcome.html'它显示了罚款? – anubhava
我使用Codeigniter“路由”http://ellislab.com/codeigniter/user-guide/general/routing.html而我做了我所需要的:) –