我有一个网站运行让我们来说吧:www.example.com本地网站重定向
在我本地的WAMP安装,我有同一个网站克隆与GIT。地址为localhost/www.example.com安装
的Drupal,并总是可以为localhost /以代替localhost/www.example.com/
有没有办法从让本地“重定向” 'example'改为'localhost/www.example.com /'? 有点像本地主机在hosts文件中处理...
在此先感谢!
我有一个网站运行让我们来说吧:www.example.com本地网站重定向
在我本地的WAMP安装,我有同一个网站克隆与GIT。地址为localhost/www.example.com安装
的Drupal,并总是可以为localhost /以代替localhost/www.example.com/
有没有办法从让本地“重定向” 'example'改为'localhost/www.example.com /'? 有点像本地主机在hosts文件中处理...
在此先感谢!
mod_rewrite on apache可以帮到你。你可以编写一个规则来将localhost/example重定向到localhost/www.example.com/
这些链接可以让你开始。
后的寻找sollution小时,我找到了答案!
用户virtualHosts http://cesaric.com/?p=255
Now 'http://example' is virtualhost for 'http://localhost/www.example.com/'
很不错:)