0
民间,简单的Apache重写
这很容易,但我似乎无法得到这个权利,任何帮助表示赞赏。
我,如果有人去一个URL
http://test.api.com/somestuff I want it to redirect to
http://test.api.com/en/api/somestuff
但是我重写规则保持产生了无尽的重定向 - 有人可以发现这个错误吗?
RewriteCond %{REQUEST_URI} !^(/en/api/).*
RewriteRule ^(.*)$ http://%{HTTP_HOST}/en/api/$1 [R,L]
谢谢 - 曾魅力 – Xrender 2011-12-22 13:43:22