301使用htaccess重定向

时间:2010-09-12 11:51:54

标签: .htaccess redirect

我想将所有网页从example.com/video_player/vidinfo/456/game/halo-reach-coop-walkthrough-gameplay-in-hd/vtype/sd/重定向到example.com/video_player/vidinfo/456/game/halo-reach-coop-walkthrough-gameplay-in-hd/

在htaac​​cess中使用301重定向,任何帮助表示赞赏。感谢

我想从网址中删除vtype/sd/,因为我已经在我的Flash视频播放器中添加了一个按钮用于此目的。

这是我目前在htaccess中使用的

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^video_player/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/$ /video_player.php?$1=$2&$3=$4&$5=$6
RewriteRule ^video_player/(.*)/(.*)/(.*)/(.*)/$ /video_player.php?$1=$2&$3=$4

1 个答案:

答案 0 :(得分:0)

RedirectMatch Permanent (.*)/vtype/sd/ $1/