Post by Bannshee » Thu May 16, 2019 7:05 pm

Dear All!

I try to redirect an old page to a new one in htaccess but it doesn't want to work!
I use this code:
RewriteRule ^about-us$ http://domain.com/aboutme [R=301,L]

It doesn't work i get this url:
http://domain.com/aboutme?_route_=about-us

Could somebody help me to solve this issue?

Thanks in advance!

Newbie

Posts

Joined
Wed Jan 09, 2019 8:22 pm

Post by johnnydel » Thu May 16, 2019 11:16 pm

I am having the same problem... thanks for posting

Newbie

Posts

Joined
Thu May 16, 2019 11:00 pm

Post by johnnydel » Thu May 16, 2019 11:18 pm

Thanks for posting

Newbie

Posts

Joined
Thu May 16, 2019 11:00 pm

Post by thekrotek » Fri May 17, 2019 3:20 am

Just type "htaccess redirect" in Google and try different solutions. One of them will definitely help you.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by dparakhiya » Fri May 17, 2019 1:05 pm

Try this :

Code: Select all

RewriteBase /

RewriteCond %{THE_REQUEST} \ /+index\.php\?_route_=([^\ &]+)
RewriteRule ^ /%1? [L,R]

For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com


User avatar
New member

Posts

Joined
Fri Jul 28, 2017 1:13 pm
Location - India

Post by Bannshee » Fri May 17, 2019 3:08 pm

Thanks, i tried it but it's the same... :(
The redirect working fine with other page redirects only not with the information sites... (contact, about us, etc...)

Newbie

Posts

Joined
Wed Jan 09, 2019 8:22 pm

Post by dparakhiya » Fri May 17, 2019 3:11 pm

share your .htaccess file

For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com


User avatar
New member

Posts

Joined
Fri Jul 28, 2017 1:13 pm
Location - India

Post by Bannshee » Fri May 17, 2019 3:56 pm

I found a solution its close to yours:

RewriteCond %{QUERY_STRING} _route_=about-us
RewriteRule ^index\.php$ /aboutme? [R=301,L]

Its working for me :)
Thanks for your help!!

Newbie

Posts

Joined
Wed Jan 09, 2019 8:22 pm
Who is online

Users browsing this forum: No registered users and 25 guests