【发布时间】:2015-01-24 04:50:08
【问题描述】:
我有一个法文和英文网站,还有一个 .htaccess。 我想做这样的事情:
If the URL has "fr" => Redirection 404 to /vues/404.php?lang=fr
If the URL has "en" => Redirection 404 to /vues/404.php?lang=en
有人可以帮帮我吗? 我试过了,但没有用:
RewriteCond %{REQUEST_URI} ^/en/
ErrorDocument 404 http://localhost:8888/netpom/vues/404.php?lang=fr
RewriteCond %{REQUEST_URI} ^/fr/
ErrorDocument 404 http://localhost:8888/netpom/vues/404.php?lang=en
【问题讨论】:
标签: .htaccess redirect http-status-code-404