Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Independent SEO URL Validation


FWR Media

Recommended Posts

Well you wouldn't want validation to redirect ?language=xxx as it would redirect all of your customers.

 

What would work I think is to do a spiders check

 

if(true === $spider_flag) {
 // redirect the ?language=xxx
} else {
 // Ooops its a customer, better leave it alone
}

 

Thanks FWR media, but I need to redirect customers and spiders too. This page is a duplicate of the pages without ?language=xxx, so I need to do a 301 redirect from any ?language=xxx to the same page without it.

 

How I can do this??

 

Thanks for your help!

Link to comment
Share on other sites

  • 3 weeks later...
  • Replies 382
  • Created
  • Last Reply

Top Posters In This Topic

I am having problems with this contribution. I've deleted a manufacturer from the admin panel (and verified that the manufacturer id is gone using mysql) however I do not get a 404 error when I reference the manufacturers page.

 

If I use a manufacturers number that has never been used then I get the 404.

 

Where do I need to look to solve this problem?

Link to comment
Share on other sites

I am having problems with this contribution. I've deleted a manufacturer from the admin panel (and verified that the manufacturer id is gone using mysql) however I do not get a 404 error when I reference the manufacturers page.

 

If I use a manufacturers number that has never been used then I get the 404.

 

Where do I need to look to solve this problem?

 

I figured it out myself! I need to reset the SEO cache.

Link to comment
Share on other sites

  • 3 weeks later...

Hi all, I've just gone through this post and can't find any reference to this problem I have.

I've got the contrib installed on my site and it works great - however I've just noticed a small problem with it today.

I'm not sure if this is just because I've missed something on the install or if it is something that effects others.

 

As an example

 

One of my correct URLs is

/sportswear-golf-wear-c-27_35.html

 

If you try something like

/blablabla-c-27_35.html

it redirects to the correct url as it should

 

What I've noticed for subcategories which are more than one level deep is that it doesn't redirect if you change the parent category id. eg

/sportswear-golf-wear-c-blablabla_35.html

would not redirect to the correct url it just stays like this.

 

If I put in

/sportswear-golf-wear-c-35.html

it will redirect properly

 

Can anyone shed any light on what I might have missed.

Or if anyone else has noticed this let me know I'm not the only one.

Link to comment
Share on other sites

Hello Robert Fisher,

 

After installing your contribution, there are a lot of dulicate title tags and meta discriptions. I am using Ultimate SEO URLs 2.2.2e.

 

 

Duplicate title tags:

 

/home-stereo-systems-c-45.html?page=4

/home-stereo-systems-c-45.html?page=4&sort=2a

‎/home-stereo-systems-c-0_45.html?page=3&sort=3a

‎/home-stereo-systems-c-0_45.html?page=2&sort=3a

 

‎/video-cameras-c-0_67.html?sort=2d&page=1‎‎

/video-cameras-c-0_67.html?sort=3d&page=1‎‎

/video-cameras-c-67.html?page=2&sort=2a‎

 

‎/safetyradarlaser-detector-p-2299.html

‎‎/safetyradarlaser-detector-p-2299.html?cPath=0_62‎

 

 

 

Duplicate meta descriptions:

 

‎/mp3-players-c-0_52.html?page=2&sort=2d

‎/mp3-players-c-0_52.html?page=4&sort=2d

‎/mp3-players-c-52.html?page=1&sort=3d

‎/mp3-players-c-52.html?page=4&sort=3a

‎/mp3-players-c-52.html?page=4

 

‎/kids-electronics-c-0_47.html?page=1&sort=2a

‎‎/kids-electronics-c-0_47.html?page=2&sort=2a‎‎

/kids-electronics-c-0_47.html?page=2&sort=3a‎‎

/kids-electronics-c-0_47.html?sort=3a&page=1

‎‎/kids-electronics-c-47.html?page=2&sort=3a‎

 

Here is my htaccess

 

# php_value session.use_trans_sid 0

# php_value register_globals 1

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

 

Did I install your contribution correctly? Please advise.

 

Thank you,

Nate

Link to comment
Share on other sites

Hello Robert Fisher,

 

After installing your contribution, there are a lot of dulicate title tags and meta discriptions. I am using Ultimate SEO URLs 2.2.2e.

 

 

Duplicate title tags:

 

/home-stereo-systems-c-45.html?page=4

/home-stereo-systems-c-45.html?page=4&sort=2a

‎/home-stereo-systems-c-0_45.html?page=3&sort=3a

‎/home-stereo-systems-c-0_45.html?page=2&sort=3a

 

‎/video-cameras-c-0_67.html?sort=2d&page=1‎‎

/video-cameras-c-0_67.html?sort=3d&page=1‎‎

/video-cameras-c-67.html?page=2&sort=2a‎

 

‎/safetyradarlaser-detector-p-2299.html

‎‎/safetyradarlaser-detector-p-2299.html?cPath=0_62‎

 

 

 

Duplicate meta descriptions:

 

‎/mp3-players-c-0_52.html?page=2&sort=2d

‎/mp3-players-c-0_52.html?page=4&sort=2d

‎/mp3-players-c-52.html?page=1&sort=3d

‎/mp3-players-c-52.html?page=4&sort=3a

‎/mp3-players-c-52.html?page=4

 

‎/kids-electronics-c-0_47.html?page=1&sort=2a

‎‎/kids-electronics-c-0_47.html?page=2&sort=2a‎‎

/kids-electronics-c-0_47.html?page=2&sort=3a‎‎

/kids-electronics-c-0_47.html?sort=3a&page=1

‎‎/kids-electronics-c-47.html?page=2&sort=3a‎

 

Here is my htaccess

 

# php_value session.use_trans_sid 0

# php_value register_globals 1

Options +FollowSymLinks

RewriteEngine On

RewriteBase /

 

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}

 

Did I install your contribution correctly? Please advise.

 

Thank you,

Nate

 

Every oscommerce user will be getting the same. Google seems to have changed the way it views the querystring and the standard sort functions of oscommerce (?page=2&sort=2d) are being viewed as seperate pages.

 

I'm looking into it atm, it's a toughie though because the sort functions are a legitimate user feature.

Link to comment
Share on other sites

Every oscommerce user will be getting the same. Google seems to have changed the way it views the querystring and the standard sort functions of oscommerce (?page=2&sort=2d) are being viewed as seperate pages.

 

I'm looking into it atm, it's a toughie though because the sort functions are a legitimate user feature.

 

Thank you for your reply. I pray that you can figure this out.

Link to comment
Share on other sites

Thank you for your reply. I pray that you can figure this out.

Hi,

 

Excellent contribution.

 

Please look at also at this example. I got these and practically all pages Google says have duplicated meta tags. Seems Google thinks the currency query creates diferent pages.

 

‎/shipping.php

‎‎/shipping.php?currency=EUR‎‎

/shipping.php?currency=GBP‎‎

/shipping.php?currency=USD‎

 

I would think all OSC shops have the same king of problems.

 

Thanks

Link to comment
Share on other sites

  • 3 weeks later...

Independent SEO URL Validation

 

### This is not an Ultimate SEO URL package ###

Rather this is an addon to Chemos package requiring Chemos ULTIMATE SEO URLs to be installed.

 

Tested on:

MS2.2 - RC1 - RC2

Register globals On/Off

PHP4 - PHP5 - MySQL 4/5

Class version 2.1c - 2.1d - 2-2.2e

 

### Note: ##################################################

Development versions copied/pasted from the forums should be replaced with this version

##########################################################

 

What does it do?

 

A problem was identified with all versions of ULTIMATE SEO URLs that can have very negative results on indexing by search engines.

 

 

Hello!

I have noticed that there is a version 2.4 of Ultimate Seos Urls. Have you any recommendation regarding that one?

Should I still use the very first version 2.1d of Nov. 25 2006?

 

Regards

Sara

Link to comment
Share on other sites

Link to comment
Share on other sites

Hi Robert

 

I fitted your latest version (31st July) and all seemed well, however when the site got busy (50+ users at same time) the server/site came to a crawl.

 

Toggling your contribution off in Admin and the site immediately sprang back to normal (fast) speed.

 

Are you aware of any performance issues like this?

 

 

 

Dave.

Link to comment
Share on other sites

Hi Robert

 

I fitted your latest version (31st July) and all seemed well, however when the site got busy (50+ users at same time) the server/site came to a crawl.

 

Toggling your contribution off in Admin and the site immediately sprang back to normal (fast) speed.

 

Are you aware of any performance issues like this?

 

 

 

Dave.

Install

2.1d ORIGINAL updated FWR Media 23 Feb 2008

Link to comment
Share on other sites

hello i install ULTIMATE SEO URLs 2.1e and everything works fine.

 

and now i want to install the Independent SEO URL Validation make the entries in application_top, general php and upload with the validation_installer.php.

 

i run the installer php and everything looks good. when i turn the FWR on in the admin panel i can't browse to any categorie or product page, still index.php works.

 

i install an backup from my site on an local server (xampp) and ist works with FWR

 

any ideas?

 

thanks

Link to comment
Share on other sites

hello i install ULTIMATE SEO URLs 2.1e and everything works fine.

 

and now i want to install the Independent SEO URL Validation make the entries in application_top, general php and upload with the validation_installer.php.

 

i run the installer php and everything looks good. when i turn the FWR on in the admin panel i can't browse to any categorie or product page, still index.php works.

 

i install an backup from my site on an local server (xampp) and ist works with FWR

 

any ideas?

 

thanks

 

With 2.1e you have to comment out the validation lines as per the instructions. You'd be better off using 2.1d updated.

Link to comment
Share on other sites

With 2.1e you have to comment out the validation lines as per the instructions. You'd be better off using 2.1d updated.

 

 

hmm what do you mean the instrauction of the validation? comment out $this->ValidateName($url ... in catalog/inculde/classes/seo.class.php ???

 

i fond nothing like $this->ValidateName($url in the file ....

 

 

yesterday i test 2.1d and fwr 1.0.2 ... i cant say it yet for 100% but it dont work....

 

then i install the 2.1e and test fwr 1.0.2 but ....

 

the mystical is, on my local machine runs it with ulc 2.1e and fwr 1.0.2

Link to comment
Share on other sites

Hello there,

 

i am a totally novice to oscommerce. No i have installed Ultimate SEO urls and Intependent SEO URL validation. The first problem is, i didn´t get the admin menu in my admin section, there is also no entry in my database for the configuration group.

 

the next promblem is, when i try to run the validation installer.php i get this error

 

1136 - Column count doesn't match value count at row 1

 

INSERT INTO `configuration_group` VALUES (null, 'FWR URL Validation', 'Validation For Ultimate SEO URLs', '31', '1')

 

[TEP STOP]

 

what does it mean?

 

Thanks for help

 

Hein

Link to comment
Share on other sites

Hello there,

 

i am a totally novice to oscommerce. No i have installed Ultimate SEO urls and Intependent SEO URL validation. The first problem is, i didn´t get the admin menu in my admin section, there is also no entry in my database for the configuration group.

 

the next promblem is, when i try to run the validation installer.php i get this error

 

1136 - Column count doesn't match value count at row 1

 

INSERT INTO `configuration_group` VALUES (null, 'FWR URL Validation', 'Validation For Ultimate SEO URLs', '31', '1')

 

[TEP STOP]

 

what does it mean?

 

Thanks for help

 

Hein

 

Are you sure you are on oscommerce and not a fork of oscommerce?

Link to comment
Share on other sites

It´s OScommerce 2.2-MS2 with Header Tags SEO and Ultimate SEO URL. Both contribs work fine, only the Admin from Ultimate SEO URL is missing.

 

In your DB what fields does configuration_group consist of?

Link to comment
Share on other sites

There's your problem

 

configuration_group_key does not exist in oscommerce yours is non standard.

Link to comment
Share on other sites

Be careful removing SEO URLs the way it was originally written it uses "LIKE" in the DELETE statement.

 

IMO DELETE statements should always use "="

Link to comment
Share on other sites

Is there an easy solution for it?

The ultimate seo urls contrib works, there is just no admin area for it.

is this why the independent seo url validation install stops with this error?

 

I deleted them manually.

Edited by sainthein
Link to comment
Share on other sites

Is there an easy solution for it?

The ultimate seo urls contrib works, there is just no admin area for it.

is this why the independent seo url validation install stops with this error?

 

I deleted them manually.

 

The easy solution at the start would have been you telling me you have a modified osc rather than telling me ..

 

It´s OScommerce 2.2-MS2 with Header Tags SEO and Ultimate SEO URL.

 

Which wastes my time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...