社区
基础编程
帖子详情
.htaccess问题?who know?
kiss2
2003-08-23 10:24:52
我想用.htaccess文件实现根据IP转入域名,比如一个IP为220.186.x.x
当他进入http://www.a.com 站时,能自动转到http://www.a.com/king/
不知道如何实现?而不是屏蔽IP!
...全文
52
7
打赏
收藏
.htaccess问题?who know?
我想用.htaccess文件实现根据IP转入域名,比如一个IP为220.186.x.x 当他进入http://www.a.com 站时,能自动转到http://www.a.com/king/ 不知道如何实现?而不是屏蔽IP!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
kiss2
2003-09-03
打赏
举报
回复
我知道思路啊,但我不懂PHP编程啊,能不能给个代码
DFlyingchen
2003-09-03
打赏
举报
回复
然后根据不同的结果发出不同的header()
DFlyingchen
2003-09-03
打赏
举报
回复
取的IP地址的第一段,判断一下是不是国内的IP段,IP地址段可以参考珊瑚虫的QQ
kiss2
2003-09-03
打赏
举报
回复
我要的是在每个页面的开头或首页的开头判断ip,如果是中国的,转向到国内下载站如网路等。
或者用PHP怎么做??
kiss2
2003-08-24
打赏
举报
回复
up
kiss2
2003-08-24
打赏
举报
回复
怎么没有人知道啊
vitalgg
2003-08-24
打赏
举报
回复
RewriteEngine on
RewriteRule ^/$ /king/
WordPress 2.7 Cookbook.pdf
Managing who Sees Ads 218 Getting ready 218 How to do it 219 How it works 220 There's more... 220 Advanced conditions 221 Inserting ads in your RSS feeds 221 Getting ready 222 How to do it ...
php.ini-development
Using this ini directive may cause problems unless you
know
what script ; is doing. ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler" ; and you cannot use both "ob_gzhandler" ...
Using
.htaccess
Files with Apache
Be Aware of What You're Granting By allowing the use of
.htaccess
files in user (or customer or client) directories, you're essentially extending a bit of your Webmaster privileges to anyone who can ...
more
.htaccess
tips and tricks..
from : http://corz.org/server/tricks/htaccess2.php more clever stuff here redirecting and rewriting "The great thing about mod_rewrite is it gives you all the ...
BUUCTF 个人做题记录【6-6】
我们先看看列数, 小写的order被过滤掉了,所以我们用大写代替 我们的列数只有四列,下面是这题最最重要的地方 我们开始回显点,这时候就回答题目最开始的查看源码 Do you
know
who am I? '; $arr = mysqli_fetch_...
基础编程
21,886
社区成员
140,364
社区内容
发帖
与我相关
我的任务
基础编程
从PHP安装配置,PHP入门,PHP基础到PHP应用
复制链接
扫一扫
分享
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章