如何将  www.a.com 解析到 /m/a/index.html的路径啊?服务器上用的是WAMP5工具

解决方案 »

  1.   


    <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteCond %{REQUEST_URI} ^/$
            RewriteRule .* /m/a/index.html [L]
    </IfModule>
      

  2.   

    你搞到哪一步了?现在www.a.com是到哪儿? 
      

  3.   

    修改 Apache mod_rewrite
      

  4.   

    有两个网址都指向了一个网站
    www.aaaa.com已经解析到 网站根目录/index.html现在要将 www.a.com 解析到 /m/a/index.html不会弄
     
      

  5.   

    我初次接触PHP
    大家说详细点儿
      

  6.   

    查apache(你用的是apache吗?)的VirtualHost的文档或网上的例子即可
      

  7.   


    正解,只需要google“虚拟主机”即可,指定下ServerName之类的就行了...
      

  8.   

    用记事本打开Apache2.2/conf/httpd.conf  添加
    <VirtualHost *:80>
        DocumentRoot /m/a/index.html
        ServerName www.a.com
       </VirtualHost>