Redirect Frenzy - From Old Urls Based On Coldfusion Non Seo Friendly Url To Cs-Cart Seo Friendly

Hi

I have bunch of external links that I want to link to our new store.

I am using rewrite rules in my .htaccess file but I am stuck..

The old external links that are still around direct to the domain of our old store which ran on coldfusion markup language (cfml)

for instance

pasioingredients.com/index.cfm?fuseaction=product.display&product_ID=67&ParentCat=100

shot link to

http://pasioonline.com/index.php?dispatch=products.view&product_id=155

Now please note that my old store is no longer on present on that domain but I have setup a Cpanel account with the old domain name and redirect it to the url of the new store.

But where do I go wrong with adding the following code to the .htcaccess file present on the Cpanel account pasioingredients that redirects to pasioonline

RewriteEngine On
RewriteCond %{HTTP_HOST} ^pasioingredients.com/index.cfm?fuseaction=product.display&product_ID=67&ParentCat=100
RewriteRule ^(.*) Citicoline 250mg 120 capsules value-size - CDP Choline improves long-term memory | Jarrow Formulas | Pasio Online [P]

Your RewriteCond is comparing the HTTP_HOST (i.e. pasioingredients.com) to the entire URL so it will never match. I would just use RewriteRule by itself and skip RewriteCond like this:

RewriteRule ^/index.cfm?fuseaction=product.display&product_ID=67&ParentCat=100 http://pasioonline.com/index.php?dispatch=products.view&product_id=155 [R=permanent, L]

Your RewriteCond is comparing the HTTP_HOST (i.e. pasioingredients.com) to the entire URL so it will never match. I would just use RewriteRule by itself and skip RewriteCond like this:

RewriteRule ^/index.cfm?fuseaction=product.display&product_ID=67&ParentCat=100 http://pasioonline.com/index.php?dispatch=products.view&product_id=155 [R=permanent, L]

That really messes up what I am trying to accomplish. :-(

Sorry, I forgot you need to test the query string separately. Since you have setup a separate account it will only get requests from pasioingredients.com so no need to test the host name:

RewriteEngine On
RewriteCond %{QUERY_STRING} ^fuseaction=product.display&product_ID=67&ParentCat=100 [NC]
RewriteRule ^/index.cfm http://pasioonline.com/index.php?dispatch=products.view&product_id=155 [NC, R=permanent, L]

If you really need to check the host name, for example if you setup pasioingredients.com as parked on pasioonline.com so it serves from the same file directory then you can add this to your cs-cart .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?pasioingredients.com [NC]
RewriteCond %{QUERY_STRING} ^fuseaction=product.display&product_ID=67&ParentCat=100 [NC]
RewriteRule ^/index.cfm http://pasioonline.com/index.php?dispatch=products.view&product_id=155 [NC, R=permanent, L]

straygecko

I appreciate it very much that you make the effort of sharing your thoughts on my issue. Unfortunately it seems that they do not work as I hoped.

I have to do some more homework.