本文介绍了htaccess重写迁移其他域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用htaccess模块重写来更改传入链接的基本域?
How do I change the base domain of an incoming link using htaccess module rewrite?
传入网址:
www.foo/bar?name1=value1&name2=value2重写的网址:
www.newFoo/bar?name1=value1&name2=value2Apache Web服务器应该简单地重写其所有传入的URL,因为Web服务器本身不再保存任何网站。
Apache webserver should simply rewrite all of its incoming urls, on the webserver itself no websites are saved anymore.
推荐答案将其添加到您的Web根 Add this to your .htaccess in your web root / directory of the server hosting www.foo
更多推荐
htaccess重写迁移其他域
发布评论