您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

求 .htaccess 跳转规则解决方案

2024/3/27 9:24:26发布42次查看
求 .htaccess 跳转规则
要求将 类似于 http://wwww.adna.com/asdasd/9889/index.html?from=9292 
跳转到 http://wwww.adna.com/asdasd/9889/index.html 这个该怎么写呢?
------解决方案--------------------
rewriteengine on
rewritebase /
# hotel
rewriterule ^index_(.*)$ index.html?from=$1 [nc]
你这样写9292 的值就丢了,你确认码
------解决方案--------------------
探讨
要求将 类似于 http://wwww.adna.com/asdasd/9889/index.html?from=9292
跳转到 http://wwww.adna.com/asdasd/9889/index.html 这个该怎么写呢?
------解决方案--------------------
这就是你的问题了
1、web 服务器中并没有应用了处理 html 所带参数,你要加上参数做什么?
2、形如 http://wwww.adna.com/asdasd/9889/index.html?from=9292 
这样的不被 google 收录,是因为他看上去像动态页面
这用重写是改变不了的!
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product