We’ve migrated a site recently that had previously been in a cold fusion environment. We moved it to our service and rebuilt the site into modx. Now, for the search engines we’ve put in redirects like so:
Redirect 301 /find_ranch.cfm http://www.coloradoranch.com/find-a-ranch.php
However, if you try one of the old links either directly or through a google search, this is the result:
http://www.coloradoranch.com/find-a-ranch.php?q=find_ranch.cfm
Consequently, it’s not actually redirecting to the proper page and due to the resulting URL, it defaults to the home page of the site. Now, looking in the .htaccess file the rewrite rule looks like this:
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
This is the ’stock’ .htaccess file supplied with modx. What do I need to adjust here? My redirects or the rewrite rule? And how should one or the other get adjusted?