Home > Backend Development > PHP Tutorial > 域名解析有关问题

域名解析有关问题

WBOY
Release: 2016-06-13 13:27:20
Original
910 people have browsed it

域名解析问题
如何将 www.a.com 解析到 /m/a/index.html的路径啊?

服务器上用的是WAMP5工具

------解决方案--------------------


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

------解决方案--------------------
你搞到哪一步了?

现在www.a.com是到哪儿? 

------解决方案--------------------
修改 Apache mod_rewrite

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

------解决方案--------------------

探讨

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

------解决方案--------------------
用记事本打开Apache2.2/conf/httpd.conf 添加

DocumentRoot /m/a/index.html
ServerName www.a.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template