开发者

RedirectMatch error with .htaccess

I have the following directive in my .htaccess file which works on one server, but not another:

RedirectMatch hobby/RENDER/0001/2015/P2015.html$ http://www.escience.ca/hobby/RENDER/0001/2015/3035/W3035.html [L]

On one of the servers, it gives me a 500 Internal Server Error. If I comment out the RedirectMatch, the 500 error goes away. This is the error message I see i开发者_如何转开发n the apache2 error.log

/var/www/escience.ca/public_html/.htaccess: Redirect: invalid first argument (of three)

Apache's rewrite and alias modules are running. What am I doing wrong?


I figured it out. The [L] flag does appear to work with RedirectMatch in my version of Apache2.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜