Redirect and RewriteRule seem to be conflicting in .htaccess file...

Discussion in 'Apache' started by jusmeig, Nov 9, 2009.

  1. #1
    Hi guys, Here is my .htaccess file:

    Redirect 301 /buy-electric-guitars.htm http://www.goodwinsmusic.ie/electric_guitars

    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]


    I am trying to add a number of 301 redirects before the rewrite engine kicks in, however what is happening is the 301 redirect is working but then getting caught by the rewrite rule. I have tried adding the [L] flag but this errors the config.

    Any ideas?

    J
     
    jusmeig, Nov 9, 2009 IP