开发者

.htaccess rewrite subdirectories to null

I want the browser location bar to show http://dir/ when I really am in http://dir/subdir/开发者_运维技巧subdir.

How do I do that? Thanks in advance!


This will allow you to enter http://yourdomain.com/dir/ into your address bar and get the content that would normally be displayed for http://yourdomain.com/dir/subdir/subdir/:

RewriteEngine on
RewriteRule ^/dir /dir/subdir/subdir

Is this what you want? If not, please clarify.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜