Post by GhostHunt » Wed Apr 25, 2018 7:49 am

Just migrated from CentOS 5 to CentOS 7 and PHP 5 to PHP 7.1
the store is generating an error File Not Found, 404 Error. I am pretty sure it is the .htaccess file which I have as this:
I do have SEO links turned on.

Does this look right? Am I missing something?

.htaccess

Options +SymLinksIfOwnerMatch

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On

# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

New member

Posts

Joined
Thu Mar 18, 2010 8:58 am

Post by GhostHunt » Wed Apr 25, 2018 8:06 am

I found the problem should be:
RewriteBase /store/

New member

Posts

Joined
Thu Mar 18, 2010 8:58 am
Who is online

Users browsing this forum: No registered users and 35 guests