English 中文(简体)
.ht access - 对所有用户进行重定向, 除了我之外
原标题:.htaccess - Redirect for all users, except me

请帮助我使用 htaccess 。 我试图创建一条规则, 规定访问特定网页的用户会自动被转到网站的另一页, 但如果我访问该网页, 这条规则对我不适用( 对于特定的IP 地址来说 ) 。

LiteSpeed 安装在服务器上, 我认为符合 Apache 的规则( 如果我错了, 我只是不明白服务器软件 ) 。

对不起 坏英语。

最佳回答

这是""http://en.wikipedia.org/wiki/HTTP_302" rel="nofollow">302-移动临时方向

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} !^xxx.xxx.xxx.xxx
RewriteRule .html$ /anotherPage.html [R=302,L]

您的 ip 和 anotherPage.html 是重定向页面 。

问题回答

暂无回答




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签