Home > Backend Development > PHP Tutorial > 求一条apache 地址重写

求一条apache 地址重写

WBOY
Release: 2016-06-23 13:53:33
Original
936 people have browsed it

输入 http://linuxaaa.test.com 访问根目录下的/aaa/bbb/ccc/xxx.htm
因为要静态化网站,/aaa/bbb/ccc/xxx.htm是生成的静态文件,需要访问域名直接去访问生成的静态文件。


回复讨论(解决方案)

答案我知道了。
RewriteRule ^(/?)$ aaa/bbb/ccc/xxx.htm [PT,L]
哪位回答一下。我给分结贴。

但你这样做有什么意义呢?

但你这样做有什么意义呢?


我要静态化网站。当访问域名就去访问一个静态页面。
我不想改变原来的程序文件,若要变成动态的就修改.htaccess
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