开发者

Re-writing the root

Is it possible to rewrite the root ?

For example; domain.co.uk/ rewrites in the address bar as domain.co.uk/home/

开发者_StackOverflow社区/home/ already being a rewrite of index.php


This should work, redirecting to /home. Even though /home later rewrites as index.php.

RewriteEngine On
RewriteRule ^(/)?$ /home [L,R=301]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜