首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

求 .htaccess 跳转规则解决方案

2012-03-13 
求 .htaccess 跳转规则要求将 类似于 http://wwww.adna.com/asdasd/9889/index.html?from9292跳转到http:

求 .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 收录,是因为他看上去像动态页面
这用重写是改变不了的!

热点排行