0

我有几个正在工作的重定向,例如这两个:

    #Options +FollowSymlinks
    RewriteEngine On

    #fishing report
    RewriteCond %{HTTP_HOST}  ^saintsimonsislandcharterfishing\.com$ [NC]
    RewriteCond %{QUERY_STRING}  ^$
    RewriteRule ^Fishing(?:[\ +]|%20)Report\.html$ http://www.charterfish.com/category/georgia-fishing-reports/? [R=301,NE,NC,L]

    #shark and tarpon
    RewriteCond %{HTTP_HOST}  ^saintsimonsislandcharterfishing\.com$ [NC]
    RewriteCond %{QUERY_STRING}  ^$
    RewriteRule ^shark(?:[\ +]|%20)and(?:[\ +]|%20)tarpon\.html$ http://www.charterfish.com/st-simons-shark-and-tarpon-fishing-charters/? [R=301,NE,NC,L]

但是,此重定向将原始 html 页面作为请求发送到新服务器:

    #about the captain
    RewriteCond %{HTTP_HOST}  ^saintsimonsislandcharterfishing\.com$ [NC]
    RewriteCond %{QUERY_STRING}  ^$
    RewriteRule ^About(?:[\ +]|%20)The(?:[\ +]|%20)Captain\.html$ http://www.charterfish.com/captain-tj-cheek/? [R=301,NE,NC,L]

http://saintsimonsislandcharterfishing.com/About%20The%20Captain.html

正在重定向到:

http://www.charterfish.com/About%20The%20Captain.html

代替

http://www.charterfish.com/captain-tj-cheek/

正则表达式看起来是正确的,我错过了什么?

4

0 回答 0