I have SEO URLs enabled for my sites; let's call them site1.com, site2.com, and site3.com. All of the SEO keywords have been entered for categories, products, and information pages, .htaccess is working, etc.
SEO URLs are working perfectly for site1.com, but site2.com and site3.com are throwing me 404s. Looking at the address bar, the links seem to be directing correctly -- i.e. the 'About Us' link on site2.com goes to 'site2.com/about-us' -- but the page 'doesn't exist'.
Of course, everything works fine with SEO keywords disabled.
I've found this tidbit:
http://forum.opencart.com/viewtopic.php ... rl#p121094
But, I assume that if SEO URLs are working perfectly for the default 'site1.com', all three of the issues outlined above are correct, right?Xsecrets wrote:if you are getting a 404 there are only three real possibilities.
1) mod rewrite is not installed or working properly or you are not on an apache server (if you are on windows IIS there are other threads for that.
2) you did not rename the file correctly should be .htaccess no period after it and a period before it.
3) you do not have your RewriteBase correct.
If those three things are correct it will work. Some setups have problems with some of the lines in the .htaccess, but those servers will throw a 500 error, so that's not the problem here.
Here is the content of my .htaccess:
Code: Select all
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
# 2. In your opencart directory rename htaccess.txt to .htaccess.
# For any support issues please visit: http://www.opencart.com
# Options +FollowSymlinks
# Prevent Directoy listing
# Options -Indexes
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini)">
Order deny,allow
Deny from all
</FilesMatch>
# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
OpenCart v1.4.9.1; clean install.