Post by ambrose1095 » Fri Aug 09, 2013 1:02 am

I've used OC before on other servers and SEO URLs has worked fine. I just can't figure out what is different this time around.

I have SEO friendly URLs enabled, htaccess is renamed, the RewriteBase on htaccess file is correct /store/ and mod_rewrite is loaded on the server according my phpinfo file. Unfortunately, when I click a category the url changes to the new SEO version but my browser says "Not Found - the requested URL is not found on this server". Also says: "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request".

Apache server
OC version 1.5.6

Any help would be greatly appreciated, thanks!

Newbie

Posts

Joined
Fri Aug 09, 2013 12:52 am

Post by butte » Fri Aug 09, 2013 2:08 am

It couldn't find the page and moreover couldn't find the error document (the one saying 404) that it was told to use rather than the default (usually Apache's own). The error document is trivial, the default error page fired. The SEO page may not have been generated or something in the two config.php files is off the mark, perhaps HTTP or HTTPS, perhaps DIR (which MUST conform to the server's own directory tree). Take a peek at those.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by ambrose1095 » Fri Aug 09, 2013 5:47 am

Thanks for the reply. My host didn't have htaccess enabled, enabled it, now everything is good.

Newbie

Posts

Joined
Fri Aug 09, 2013 12:52 am

Post by butte » Fri Aug 09, 2013 7:44 am

Probably you had renamed something and left it without its leading DOT or had left it with its trailing DOT, where it was supposed to be ".htaccess" pure and simple -- nameless then DOT and then pure extension.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by shervs » Thu Aug 15, 2013 2:25 am

Ive always found this website to have the best explanation of how to have friendly URL http://www.nixstudio.com/seo-friendly-url-opencart/

Newbie

Posts

Joined
Thu Aug 15, 2013 2:22 am

Post by cdpritchard » Sat Jun 14, 2014 12:02 am

I've followed the tutorial located here:
http://www.nixstudio.com/seo-friendly-url-opencart

And all of the non-product pages (Home, Account, Cart, even the whole admin areas, etc) generates a 404 error. The actual Product and Category pages work great.

I deleted my browser cache with no change. Has anyone used the method at that site successfully? Any idea what I'm doing wrong? Here is my htaccess file:

Code: Select all

Options +FollowSymlinks
Options -Indexes
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [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] RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteRule ^index\.php$ http://www.cygnetdisplays.com? [R=301,L] 

User avatar
Newbie

Posts

Joined
Thu Jun 12, 2014 3:01 am

Post by cdpritchard » Sat Jun 14, 2014 3:00 am

It seems the tutorial at http://www.nixstudio.com/seo-friendly-url-opencart is pretty useless. It just breaks the installation. I uploaded the original htaccess file from the OpenCart download and all works. It would be nice if the account level links were also SEO friendly, but at least pages and products are now.

User avatar
Newbie

Posts

Joined
Thu Jun 12, 2014 3:01 am
Who is online

Users browsing this forum: No registered users and 21 guests