Configuring OpenCart SEO URL on Xampp
SEO URL is not working on Opencart 3 on the local server localhost Xampp?
There is an error with the SEO URL function on localhost
For example, the OpenCart CMS website is hosted on the local server Xampp at the address localhost/site.ua/
The homepage of the website opens fine. However, when trying to navigate to other pages of the website, such as the "Computers" category, an error is encountered.

Typically, these errors have codes 500, 404, or a redirection to the Apache server's dashboard: localhost/dashboard/

Let's configure the correct functioning of SEO URL on localhost
To do this, we will set up URL redirects for the OpenCart CMS on localhost. For this to work, the Apache server must have the mod-rewrite module installed.
So, in XAMPP, go to apache/conf ( or /LAMP/etc в Linux) and open the file httpd.conf with any code editor.
Find the line
#LoadModule rewrite_module modules/mod_rewrite.so
and uncomment it by removing the "#" symbol in front of it
LoadModule rewrite_module modules/mod_rewrite.so

Save the file and restart the Apache server.
Activate SEO URL in Opencart (we have explained what SEO URL is and how to configure it in detail before):
- In the admin section, go to: System - Settings - Server tab - enable SEO URL.
- Rename .htaccess.txt to .htaccess
If SEO URL still doesn't work after these settings, find the line in the .htaccess file
RewriteBase /
and rewrite it as follows
RewriteBase /mystore/
Take the name of the folder containing the website in htdocs and place it between two slashes. For example, if the folder with the store in htdocs is named mystore, the entry should look like this:

Now, all the pages of the OpenCart store on the local server localhost will open with correct SEO URLs.