Page 1 of 1

SEO URLs not working

Posted: Wed Sep 28, 2022 11:43 am
by chasman
SEO URLs are redirecting back to the home page.
It shows the SEO path in the URL address bar but it shows the home page.
Any help on this would be appreciated. Thanks.
ver. 2.3.0.2

Re: SEO URLs not working

Posted: Wed Sep 28, 2022 6:55 pm
by ADD Creative
Anything changed with your hosting or site just before it started happening? Check your htaccess file for changes. Also check both the PHP and OpenCart error logs.

Re: SEO URLs not working

Posted: Fri Sep 30, 2022 12:53 am
by chasman
Thank you for your response.
Yes, as a matter of fact my host changed my site location. It was /home1/... now it's /home4/...
Also, I'm not sure what exactly to check in the .htaccess file for changes. There are these files in the root directory:
.htaccess
.htaccess.phpupgrader.1825a664
.htaccess.phpupgrader.d1744706
.htaccess.phpupgrader.initial
.htaccess9

Also, I added an SEO to one of my products and verified that it reroutes back to the home page and then check both the PHP and OpenCart error logs and nothing got added.
Thank you

Re: SEO URLs not working

Posted: Fri Sep 30, 2022 1:22 am
by Cue4cheap
the .htacces file have the rules in them for SEO?
If not look at the other .htaccessblahblahblah files and see if they are in there.
A lot of hosts will do that to your .htaccess (archive it under a different name) and put in a generic htaccess when they update ya.
Mike

Re: SEO URLs not working

Posted: Fri Sep 30, 2022 2:50 am
by chasman
Further investigation shows the .htaccess file does not contain any SEO URL rewrite information while the other (archived) .htaccess files do.
The other files all appear to contain the same information. Can I rename my current .htaccess file to .htaccess.bak and rename one of the other files to .htaccess ?
Thank you for your help

Re: SEO URLs not working

Posted: Fri Sep 30, 2022 3:52 am
by ADD Creative
As long as you do a backup you can always restore if something goes wrong. Maybe ask your host exactly what they have done.

Re: SEO URLs not working

Posted: Fri Sep 30, 2022 6:04 pm
by JNeuhoff
Also make sure that your .htaccess has the correct RewriteBase entry in it.