Post by BeachBumTech » Wed Oct 23, 2013 6:36 am

None of the baseline SEO URL rewriting is working within opencart.

I have tested everything I can think of with no results.

.htaccess exists and has the default settings. I've also tested with the minimal config.

I have verified mod_rewrite works by inserting the following at the beginning of .htaccess and it does route me over to google. (when uncommented)

Code: Select all

#RewriteEngine on
#RewriteRule test\.htm http://www.google.com [R]
I have enabled SEO URL in the admin area.

I have added SEO Keywords for several products, categories and info pages for testing.

All links still use the default paths instead of the friendly URLs.
If I generate a product feed, and test one of the friendly URLs, then the browser just goes to the homepage, displaying the entire friendly URL.

For example, for the info page about us, I have added the SEO keyword "About-Us". If I browse to http://www.xxxxxx.com/About-Us it displays the homepage. Within the site, the about us link still shows http://www.xxxxxxx.com/index.php?route= ... ation_id=4.

Any ideas what I may have missed?

I did test by removing all VQMODs with same result. Also uninstalled/disabled all added modules with the same result.

I've spent a few days on this and about to bang my head against the wall....

This is OpenCart version 1.5.6.

Thanks,
Lee

Newbie

Posts

Joined
Wed Oct 23, 2013 3:40 am

Post by lilpantherpaw » Sat Jan 18, 2014 4:10 pm

I am having the same problem with my OpenCart v1.5.6 and am very frustrated.

User avatar
Newbie

Posts

Joined
Sun Jan 29, 2012 4:17 am

User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by lilpantherpaw » Tue Jan 21, 2014 3:24 am

That is a good question. I am on a standard host with BlueHost and they confirmed that Apache re-write mod was active, which is supposedly required for the SEO URL's to work.

User avatar
Newbie

Posts

Joined
Sun Jan 29, 2012 4:17 am

Post by cwswebdesign » Tue Jan 21, 2014 3:58 am

Put a # before +FollowSymLinks

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by lilpantherpaw » Thu Feb 06, 2014 7:56 am

Where do I place this #FollowSymLinks? In the .haccess file?

User avatar
Newbie

Posts

Joined
Sun Jan 29, 2012 4:17 am

Post by cwswebdesign » Thu Feb 06, 2014 8:24 am

lilpantherpaw wrote:Where do I place this #FollowSymLinks? In the .haccess file?

You should already have +FollowSymLinks there so just put a # before it.

DL

This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.

Thanks!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA

Post by ctccs » Sat Feb 08, 2014 8:23 am

I have a similar problem, when I hover over an seo link, the proper page address is shown, but when I click the link the page is not found. It appears that the mapping of the seo to the correct page is not being done.

OpenCart version 1.5.6, seo is enabled within the admin.
I am running the Apache 2 server on a local host for development, testing.
The apache2 mod_rewrite is enabled.
I have done only 1 modification to the provided .htaccess file, which was to change the "RewriteBase" from "/" to "opencart_store/" , which is the folder for the OpenCart Store.
e.g.

Code: Select all

 http://localhost/opencart_store/index.php?route=common/home
is the address of the default home page.
Any help would be appreciated.
Thank you.

The solution to my problem was to set "AllowOveride FileInfo" in the <Directory /> section of the definition of the Virtual Host of my enabled sites. Apache recommends putting the .htaccess info in a <Directory /> section in here if you have access to it.

The following is the relevant content of the .htaccess file:

Code: Select all

# 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|log)">
 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 /opencart_store/
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]
### Additional Settings that may need to be enabled for some servers 

Newbie

Posts

Joined
Sat Feb 08, 2014 7:49 am
Who is online

Users browsing this forum: No registered users and 8 guests