Post by JasonF » Tue Apr 24, 2012 9:47 pm

Hi,

I'm trying to port a site from Cre Loaded to OpenCart, I want to redirect the old URL's to the new OpenCart links, however for most of them (products and a few others) I'm receiving the following error:

"The page you requested cannot be found!"

Here's a small sample of the links I'm trying to redirect:

Code: Select all

Redirect 301 /product_info.php?products_id=790 http://nerdtshirtsuk.com/21-12-2012-end-of-the-world-t-shirt
Redirect 301 /product_info.php?products_id=784 http://nerdtshirtsuk.com/be-rational-get-real-geeky-t-shirt
Redirect 301 /product_info.php?products_id=778 http://nerdtshirtsuk.com/man-of-low-moral-fiber-monkey-island-t-shirt
Redirect 301 /product_info.php?products_id=772 http://nerdtshirtsuk.com/hab-sosli-quch-klingon-star-trek-t-shirt
Redirect 301 /product_info.php?products_id=766 http://nerdtshirtsuk.com/stop-following-me-geeky-t-shirt
Redirect 301 /product_info.php?products_id=760 http://nerdtshirtsuk.com/real-friends-help-you-kill-zombies-geeky-t-shirt
Redirect 301 /product_info.php?products_id=754 http://nerdtshirtsuk.com/i-drive-at-88mpg-just-in-case-back-to-the-future-t-shirt
Redirect 301 /product_info.php?products_id=748 http://nerdtshirtsuk.com/shoryuken-street-fighter-t-shirt
Redirect 301 /product_info.php?products_id=742 http://nerdtshirtsuk.com/the-carbon-unicycle-geeky-t-shirt
I've had a read around the search results and tried with ? and /? on the end of the new URL's, neither helped. I've tried a few other suggestions too but maybe I was doing it wrong.

Any help will be appreciated.

Thanks,

Jason

New member

Posts

Joined
Sat Oct 01, 2011 12:46 am

Post by JasonF » Sat Apr 28, 2012 6:34 am

I've figured it out now.

If anyone's curious, here was what I ended up using:

Code: Select all

RewriteCond %{QUERY_STRING}  ^$
RewriteRule ^shopping_cart\.php$ http://nerdtshirtsuk.com/index.php?route=checkout/cart [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^$
RewriteRule ^contact_us\.php$ http://nerdtshirtsuk.com/index.php?route=information/contact [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^$
RewriteRule ^products_new\.php$ http://nerdtshirtsuk.com/index.php?route=product/all&sort=p.date_added&order=DESC [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^$
RewriteRule ^sitemap\.php$ http://nerdtshirtsuk.com/index.php?route=information/sitemap [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^CDpath=0&pID=5$ [NC]
RewriteRule ^pages\.php$ http://nerdtshirtsuk.com/end-of-the-world-sale? [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^currency=USD$ [NC]
RewriteRule ^products_new\.php$ http://nerdtshirtsuk.com/index.php?route=product/all&sort=p.date_added&order=DESC [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^currency=EUR$ [NC]
RewriteRule ^products_new\.php$ http://nerdtshirtsuk.com/index.php?route=product/all&sort=p.date_added&order=DESC [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^sort=newest$ [NC]
RewriteRule ^index\.php$ http://nerdtshirtsuk.com/index.php?route=product/all&sort=p.date_added&order=DESC [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^sort=oldest$ [NC]
RewriteRule ^index\.php$ http://nerdtshirtsuk.com/index.php?route=product/all&sort=p.date_added&order=ASC [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^sort=popular$ [NC]
RewriteRule ^index\.php$ http://nerdtshirtsuk.com/index.php?route=product/all&sort=p.quantity&order=ASC [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^sort=az$ [NC]
RewriteRule ^index\.php$ http://nerdtshirtsuk.com/index.php?route=product/all&sort=pd.name&order=ASC [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^products_id=790$ [NC]
RewriteRule ^product_info\.php$ http://nerdtshirtsuk.com/21-12-2012-end-of-the-world-t-shirt? [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^products_id=784$ [NC]
RewriteRule ^product_info\.php$ http://nerdtshirtsuk.com/be-rational-get-real-geeky-t-shirt? [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^products_id=778$ [NC]
RewriteRule ^product_info\.php$ http://nerdtshirtsuk.com/man-of-low-moral-fiber-monkey-island-t-shirt? [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^products_id=772$ [NC]
RewriteRule ^product_info\.php$ http://nerdtshirtsuk.com/hab-sosli-quch-klingon-star-trek-t-shirt? [R=301,NE,NC,L]
RewriteCond %{QUERY_STRING}  ^products_id=766$ [NC]
RewriteRule ^product_info\.php$ http://nerdtshirtsuk.com/stop-following-me-geeky-t-shirt? [R=301,NE,NC,L]

New member

Posts

Joined
Sat Oct 01, 2011 12:46 am
Who is online

Users browsing this forum: Google [Bot] and 34 guests