开发者

.htaccess to forward url and exclude one page

开发者 https://www.devze.com 2023-01-20 22:57 出处:网络
How to开发者_如何学JAVA write a .htaccess that has in result: ALL Requests on that domain go forwarded to the index.html at the rootfolder of the same domain.

How to开发者_如何学JAVA write a .htaccess that has in result:

ALL Requests on that domain go forwarded to the index.html at the rootfolder of the same domain.

The index.html itself is not forwarded (excluded) as it includes 2 outbound links.

thanks chris


RewriteEngine On
RewriteCond %{REQUEST_URI} !^/?index\.php
RewriteRule /?(.*) index.html [L]
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号