Post by Jeens » Sun Jan 17, 2021 6:04 pm

I want to make some .htaccess redirects but somewho it is not working.
I to do 2 things:

1.) Redirect from https://domain.com/index.php to https://domain.com

2.) Redirect from https://domain.com/index.php?route=product/manufacturer to https://domain.com/brands
https://domain.com/brands is an adress that works when put in manually.

I tried many things and variations of this, but it is not working:

Code: Select all

RewriteBase /
RewriteRule ^https://domain.com/index.php$ https://domain.com [R=301,L]
RewriteRule ^index.php?route=product/manufacturer$ https://domain.com/brands [R=301,L]
I run opencart 2.3.0.2

Can anyone help? Thanks!

New member

Posts

Joined
Sat Jul 11, 2020 5:16 pm

Post by IP_CAM » Sun Jan 17, 2021 11:33 pm

Yep, Google can:
https://www.google.com/search?q=force+h ... 8&oe=utf-8
And don't forget, after changing anything, always clear out all of your
OC Cache Sections, before testing again.

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Jeens » Mon Jan 18, 2021 12:40 am

IP_CAM wrote:
Sun Jan 17, 2021 11:33 pm
Yep, Google can:
https://www.google.com/search?q=force+h ... 8&oe=utf-8
And don't forget, after changing anything, always clear out all of your
OC Cache Sections, before testing again.
HTTPS works fine I want to make a 301 redirect

New member

Posts

Joined
Sat Jul 11, 2020 5:16 pm

Post by xxvirusxx » Mon Jan 18, 2021 4:50 pm

You have Redirects on your hosting Cpanel. You have tried?

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by khnaz35 » Mon Jan 18, 2021 11:11 pm

Here is the link with both ways to do it from Cpanel as well from .htaccess
Have a look.

https://tribulant.com/docs/hosting-doma ... r-non-www/

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 185 guests