0
我似乎无法找到如何才达到一个重写的任何信息重定向到http://localhost:8888/
http://loclahost:8888/home/
Rewrite_mod重定向HTTP://本地主机/到http://本地主机的/ home/
我想:
RedirectMatch ^/$ http://localhost:8888/website/home/
但是,这给了我一个无限循环。
我已经应用了以下规则:
RewriteCond %{REQUEST_URI} home/
RewriteRule home/ http://localhost:8888/website/index.php [L]
RewriteCond %{REQUEST_URI} ([a-z]*)/
RewriteRule ([a-z]*)/ http://localhost:8888/website/$1.php
我得到了这个信息:http://httpd.apache.org/docs/2.4/rewrite/remapping.html#moveddocroot
你有任何其他规则是什么? – 2013-04-11 09:31:05
我会更新我的问题。 – 2013-04-11 09:34:21