Post by shoo002 » Thu Mar 25, 2010 9:11 pm

Hello all,

I am using OC144, It seems my site has developed a problem and i'm not sure why.

The problem is that when i click on some categories it loads then pings back to the same page. What i mean is i click on a sub category for example, the page seems as though it is about to load but then stops and stays on the same page. Its the same effect as refreshing the page.

Can anyone help to shed some light on this for me please.

http://www.thefishingandleisureshop.com/

http://www.thefishingandleisureshop.com ... ne-&-Braid (here is an example link that is playing up)

Thanks in advance
Stewart

Active Member

Posts

Joined
Sat Jul 04, 2009 9:40 pm


Post by Qphoria » Thu Mar 25, 2010 9:19 pm

The design of the cart that is instead of showing a "404" it will just return you to the homepage gracefully. So when you are being sent back to the home, it means the site could not locate the path you entered. Looks like you have & in your url for SEO. This is not allowed. use "and"

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by shoo002 » Thu Mar 25, 2010 11:24 pm

thanks so much q thats sorted the problem

thanks
stewart

Active Member

Posts

Joined
Sat Jul 04, 2009 9:40 pm


Post by FxMan » Fri Mar 26, 2010 1:48 pm

I have a fresh install of the latest cart.
I added one product to test.

I click on category, then product.
When I click on the product, I get a 404 error from my host provider.
But, this only happens when there is Any text in the SEO field for the product.
If I leave the SEO field blank, the product page appears like normal.

btw, Daniel,
awesome updates/upgrades of the cart since I last used it sometime last year.

www.thermalrollsrus.com

New member

Posts

Joined
Fri May 15, 2009 7:18 am

Post by Qphoria » Fri Mar 26, 2010 7:35 pm

That means you don't have SEO setup correctly. Did you rename your htaccess.txt file to .htaccess?

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by FxMan » Sat Mar 27, 2010 11:00 pm

Thanks Qphoria. Yes I renamed it.

Since I use 1and1, and OpenCart needs PHP5, I have to use .htaccess to make it work.
I use AddType x-mapp-php5 .php for that.

Then I use:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.thermalrollsrus.com$ [NC]
RewriteRule ^(.*)$ http://www.thermalrollsrus.com/$1 [R,L]

Maybe this string is inaccurate?

I'll try a different flavor of the ReWrite and see if I can get SEO to work.

****

OK, I figured it out.
The Rewrite was not correct.
It should be:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain.com [NC] (there was a "!" and "www." on this line)
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]

Now I get a 404 error on the About Us link, but that is the only error.

New member

Posts

Joined
Fri May 15, 2009 7:18 am

Post by rph » Sun Mar 28, 2010 1:01 am

You need to set it back to the default.

Code: Select all

Options +FollowSymlinks

RewriteEngine On
RewriteBase / 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
The only thing you'd change is RewriteBase if OpenCart is in a subdirectory.

http://wiki.opencart.com/index.php?title=SEO_URLs

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: Bing [Bot] and 24 guests