Post by HankMcSpank » Tue Aug 07, 2012 6:36 am

So I set up my fledgling empire a few months ago!

Initally I didn't go the SEO URL way in OC, but as I've learned more, I've worked out how to do it & changed all my URLS.

Oh my word....when I check google webmaster tools there's a bazillion 404 errors.

So what should my plan of attack be...

1. Do nothing & hope that google's cache ages them out?

2. Do 301 redirects?

If option 2, I had a little attempt....epic fail

I found this page....

http://allanpollett.com/blog/creating-301-redirects/

& he suggests the syntax for the htaccess file is just ....

Redirect 301 http://www.yoursite.com/oldpage.html /newpage.html

so I want a ficticious made up page called 1.html on my site to reroute, so figured it would be like this (obviiously changing the yoursite bit!)

Redirect 301 http://www.yoursite.com/o1.html /index.html

It didn't work....what am I missing or is my approach all wrong?

As an aside, within OC for categories on the data page & SEO field, should I be using an html suffix in there too? So for example if the category is DVDs an SEO field entry of of DVD.html (at poresent I've just got it as DVD)

Active Member

Posts

Joined
Wed Apr 11, 2012 4:15 pm

Post by bigchili » Tue Aug 07, 2012 2:06 pm

I wouldn't worry with removing all those 404 errors. Just do a google search for your website like "yoursite.com" and if you have any of the old or outdated URLs turn up, you can redirect them using your .htaccess. If you're using cPanel, you can do 301 redirects from there and it will add them to your .htaccess automatically.

Regarding your last question, you do not enter .html into the SEO URL field.

User avatar
Active Member

Posts

Joined
Wed May 16, 2012 3:00 am


Post by HankMcSpank » Tue Aug 07, 2012 7:02 pm

bigchili wrote:I wouldn't worry with removing all those 404 errors. Just do a google search for your website like "yoursite.com" and if you have any of the old or outdated URLs turn up, you can redirect them using your .htaccess. If you're using cPanel, you can do 301 redirects from there and it will add them to your .htaccess automatically.
Thanks.
bigchili wrote: Regarding your last question, you do not enter .html into the SEO URL field.
Is that for everything (products too) or just categories?

At the minute a typical SEO field entry per product looks like this....

cutters-with-carbon-steel-jaws.html

but for a product (not category), are you saying it should just be...

cutters-with-carbon-steel-jaws
(i.e. no html on the end?)

Active Member

Posts

Joined
Wed Apr 11, 2012 4:15 pm

Post by bigchili » Tue Aug 07, 2012 8:06 pm

HankMcSpank wrote:Is that for everything (products too) or just categories?

At the minute a typical SEO field entry per product looks like this....

cutters-with-carbon-steel-jaws.html

but for a product (not category), are you saying it should just be...

cutters-with-carbon-steel-jaws
(i.e. no html on the end?)
Actually you shouldn't put .html at the end of any of your SEO URLs. OpenCart uses .php anyway when your SEO URLs are not turned on, not .html. But when your SEO URLs are turned on, OpenCart uses cruftless links (which means the .php is stripped from the URL), so adding on an extension like .php or .html would be unnecessary.

User avatar
Active Member

Posts

Joined
Wed May 16, 2012 3:00 am


Post by HankMcSpank » Tue Aug 07, 2012 11:34 pm

Many thanks (I'm clearly clueless!)...I'll now strip the .html off the end of all my products in the SEO field.

Active Member

Posts

Joined
Wed Apr 11, 2012 4:15 pm

Post by aneerak » Wed Aug 08, 2012 2:54 pm

Perfect solutions. thanks a lot guys.

Newbie

Posts

Joined
Wed Aug 08, 2012 2:52 pm

Post by kgkaraoke » Mon Oct 15, 2012 2:23 am

HankMcSpank wrote:So I set up my fledgling empire a few months ago!

Initally I didn't go the SEO URL way in OC, but as I've learned more, I've worked out how to do it & changed all my URLS.

Oh my word....when I check google webmaster tools there's a bazillion 404 errors.

So what should my plan of attack be...

1. Do nothing & hope that google's cache ages them out?

2. Do 301 redirects?

If option 2, I had a little attempt....epic fail

I found this page....

http://allanpollett.com/blog/creating-301-redirects/

& he suggests the syntax for the htaccess file is just ....

Redirect 301 http://www.yoursite.com/oldpage.html /newpage.html

so I want a ficticious made up page called 1.html on my site to reroute, so figured it would be like this (obviiously changing the yoursite bit!)

Redirect 301 http://www.yoursite.com/o1.html /index.html

It didn't work....what am I missing or is my approach all wrong?

As an aside, within OC for categories on the data page & SEO field, should I be using an html suffix in there too? So for example if the category is DVDs an SEO field entry of of DVD.html (at poresent I've just got it as DVD)
Another victim.
To begin with, you'll need "Pretty Damn Sexy" extensions #1 and #3.
Then you'll need Beop All Clean Urls, which is free.(Available only for OC Versions 1.5.X.X.)

Then you'll need to wait it out with Google. Figure a couple of months, and these bad urls will drop off.
IF you know what you're doing you can edit "URL Parameters" under "Configuration" in Google Webmaster Tools, but you have to be very careful with this and take your time doing it. This will cause Google to ignore the "funny" urls.

Whether or not you want to assign extensions to the pages is up to you, but it really makes no difference insofar as Google is comcerned.

"01.html" is not the same as "1.html"
Last edited by kgkaraoke on Sun Oct 21, 2012 7:21 am, edited 1 time in total.

New member

Posts

Joined
Fri Oct 29, 2010 9:06 am

Post by HankMcSpank » Tue Oct 16, 2012 2:40 am

kgkaraoke wrote:
HankMcSpank wrote:So I set up my fledgling empire a few months ago!
To begin with, you'll need "Pretty Damn Sexy" extensions #1 and #3.
Then you'll need Beop All Clean Urls, which is free.(Available only for OC Versions 1.5.X.X.)
Can you link me to "Pretty Damn Sexy" extensions #1 and #3 ...a search in the extension section didn't seem to yield anything by that name?

Active Member

Posts

Joined
Wed Apr 11, 2012 4:15 pm

Active Member

Posts

Joined
Wed Apr 11, 2012 4:15 pm

Post by 4thdesign » Mon Jan 06, 2014 2:51 am

Sorry, its an old topic but......

Google webmaster tools MUST have .html in the xml files for a sitemap.

I have just tried submitting a sitemap auto generated by xml-sitemaps.com and the sitemap isnt recognised by Google as in, there are no URL's at all.

Although there are lots of URL's in the xml file, the only thing that is missing is the .html at the end of each link, even though I have SEO URL's turned on at the backend of OC.

To be honest, the way I see it, OC is a bit fubar when it comes to doing this. Most SEO check websites indicate that there are no metatags in OC, and this is disconcerting for noobies that are playing at creating websites.

Guys.... what would you recommend here?

I suppose the question is this, WHY isnt my OC showing any file extension on any pages even when SEO URL's are switched on?????

HELP!!!!

Newbie

Posts

Joined
Sun Oct 28, 2012 10:39 pm

Post by Cue4cheap » Mon Jan 06, 2014 3:16 am

I just tested my sitemap with SEO turned on an no extension and google accepted it fine.
Mike

cue4cheap not cheap quality


Active Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by labeshops » Mon Jan 06, 2014 3:29 am

Yeah, I have no problem with sitemaps and no .html either on any of my 30+ OC stores, so think you should recheck the error message - must be something else wrong.

Running Opencart v2.2 with multi-stores from https://www.labeshops.com which has links to all my stores.

Image


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by 4thdesign » Mon Jan 06, 2014 4:03 am

Guys, do you think it may have something to do with my .htaccess file?

This is my file:

# 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|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 /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /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]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none

Newbie

Posts

Joined
Sun Oct 28, 2012 10:39 pm
Who is online

Users browsing this forum: No registered users and 14 guests