Post by diwakar007 » Wed Oct 15, 2014 3:33 pm

I also tried this one

Code: Select all

RewriteEngine on
RewriteRule ^sitemap$ index.php?route=information/sitemap [R=301,L]
but it doesn't work.

Thanks & Regards
Diwakar
SEO Freelancer Delhi - India


Newbie

Posts

Joined
Tue Oct 14, 2014 8:10 pm
Location - New Delhi, India

Post by Cue4cheap » Thu Oct 16, 2014 6:12 am

diwakar007 wrote:I also tried this one

Code: Select all

RewriteEngine on
RewriteRule ^sitemap$ index.php?route=information/sitemap [R=301,L]
but it doesn't work.

How about trying:
RewriteRule ^sitemap.xml$ /index.php?route=feed/google_sitemap

Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by diwakar007 » Fri Oct 17, 2014 8:33 pm

Cue4cheap wrote:
diwakar007 wrote:I also tried this one

Code: Select all

RewriteEngine on
RewriteRule ^sitemap$ index.php?route=information/sitemap [R=301,L]
but it doesn't work.

How about trying:
RewriteRule ^sitemap.xml$ /index.php?route=feed/google_sitemap

Mike

Thanks for the reply Mike, But this is not "sitemap.xml" URL it's a "sitemap.html". Because in opencart it exclude the ".html" from every webpage. That's why I write the code above.

Thanks & Regards
Diwakar
SEO Freelancer Delhi - India


Newbie

Posts

Joined
Tue Oct 14, 2014 8:10 pm
Location - New Delhi, India

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by xoomit » Tue Sep 22, 2015 2:41 pm

Hi,

I have the same problem but with 2 shops. I want to set 301 to forward URLs from my old shop to the new one, for example:

Redirect 301 /rechtliche-fragen-beim-guerilla-gardening.html https://www.diestadtgaertner.de/blog/re ... -gardening

The shops run on two domains and the redirect will happen in the htaccess of the old shop. The old shop runs on 1.5.6 the new one on 2.01.1. Many URLs change in the new shop so I couldn't use placeholders.

Any idea how this could be done?

Thanks & best,
Torge

New member

Posts

Joined
Tue Jun 19, 2012 6:09 am

Post by Madhavi » Thu Oct 06, 2016 1:57 pm

Could you please fix these links in opencart
1. HOME: http://nails.hollywoodessentials.com/in ... ommon/home
SHOULD BE: http://www.nails.hollywoodessentials.com/home

2. Contact Us: http://nails.hollywoodessentials.com/in ... on/contact
SHOULD BE: http://www.nails.hollywoodessentials.com/contact-us

My products pages are working with seo friendly url but these urls are not working.Please solve my problem.

Newbie

Posts

Joined
Sat Oct 01, 2016 5:12 pm

Post by HariOm108 » Mon Oct 10, 2016 3:23 pm

Please help to make redirect command from old page

/shop/dekorativnye-plenki?route=product/category&path=25

to new page
/dekorativnye-plenki

Tnanks!

Newbie

Posts

Joined
Thu Oct 06, 2016 1:01 am

Post by frank79 » Sun Dec 11, 2016 11:20 pm

For the ones that have troubles with redirecting SEO urls, I have read about the question mark (?) trick, but the way to go is to work with the query variable _route_ :

In your htaccess, find the line:
RewriteBase /

And just after that copy and paste this rule, replacing old-seo-url and new-seo-url with your urls:

RewriteCond %{QUERY_STRING} _route_=OLD-SEO-URL
RewriteRule ^index\.php$ /NEW-SEO-URL? [R=301,L]

Our new Opencart Extension:
AI Assistant - automatic product and category text generator


User avatar
New member

Posts

Joined
Thu Apr 26, 2012 12:01 am

Post by artgarcia » Sat May 20, 2017 11:58 am

frank79 wrote:
Sun Dec 11, 2016 11:20 pm
For the ones that have troubles with redirecting SEO urls, I have read about the question mark (?) trick, but the way to go is to work with the query variable _route_ :

In your htaccess, find the line:
RewriteBase /

And just after that copy and paste this rule, replacing old-seo-url and new-seo-url with your urls:

RewriteCond %{QUERY_STRING} _route_=OLD-SEO-URL
RewriteRule ^index\.php$ /NEW-SEO-URL? [R=301,L]
frank79 Just did it and it works just fine! thanks!

ArtGarcia
profitnessmx.com
mexico

Newbie

Posts

Joined
Mon Dec 05, 2011 8:59 am
Who is online

Users browsing this forum: Amazon [Bot] and 141 guests