Redirect 本地网站重定向
我有一个网站,比如说:www.example.com 在我本地的WAMP安装中,我用GIT克隆了同一个网站。地址是localhost/www.example.com Drupal已安装,并且始终转到localhost/而不是localhost/www.example.com/ 是否有方法将本地“重定向”从“示例”转到“localhost/www.example.com/”? 有点像localhost是在hosts文件中处理的Redirect 本地网站重定向,redirect,wamp,hosts,Redirect,Wamp,Hosts,我有一个网站,比如说:www.example.com 在我本地的WAMP安装中,我用GIT克隆了同一个网站。地址是localhost/www.example.com Drupal已安装,并且始终转到localhost/而不是localhost/www.example.com/ 是否有方法将本地“重定向”从“示例”转到“localhost/www.example.com/”? 有点像localhost是在hosts文件中处理的 提前谢谢 在apache上重写mod_可以帮助您。您可以编写一条规则,
提前谢谢 在apache上重写mod_可以帮助您。您可以编写一条规则,将localhost/example重定向到localhost/www.example.com/ 这些链接可以让你开始
- 经过几个小时的寻找解决方案,我找到了答案
用户虚拟主机
非常好:)
Now 'http://example' is virtualhost for 'http://localhost/www.example.com/'