htaccess + 301 hell

Discussion in 'Apache' started by deuterium, Dec 30, 2009.

  1. #1
    Hi, I've recently moved a forum from www.hostcule.com to http://forums.hostcule.com.

    I was advised by vBSEO to use 301 redirects to keep things safe - but this has gone wrong.

    The current website uses it's own SEO methods, and here's the current htaccess stuff:

    
    RewriteCond %{HTTP_HOST} ^www.hostcule.com
    RewriteRule ^([A-Za-z\-/]+)$ index.php?do=$1 [QSA]
    RewriteCond %{SERVER_PORT} 80 
    
    RewriteRule (.*)\.xml(.*) $1.php$2 [nocase]
    RewriteRule ^(news-announcements/.*) http://forums.hostcule.com/$1 [L,R=301]
    Code (markup):
    Guess what isn't working, that last rewrite rule, how do I fix it?
     
    deuterium, Dec 30, 2009 IP