Jump to content
spidometrs

[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

Recommended Posts

excuse me for "robot".
the urls work very well on the site, no problems.
This is googlebot, msnbot ...
They visit the url re-write by adding the ID in addition, as on my example
It's weird

Thank you.

Osc 2.3.4

mts template

Share this post


Link to post
Share on other sites

If you are using a sitemap, take a look at it to make sure the url's are correct. If it is one you generated from some external site, it was probably not created correctly.

Share this post


Link to post
Share on other sites
7 hours ago, ammsimon said:
excuse me for "robot".
the urls work very well on the site, no problems.
This is googlebot, msnbot ...
They visit the url re-write by adding the ID in addition, as on my example
It's weird

Thank you.

Someone posted a similar type problem just a few posts back from yours.

You need to find where in your script it is generating these parameters and then fix it, by adding code possibly. Even if the problem is already fixed / removed, google will continue to crawl the URLs indefinitely, until you put a 301 redirect on URLs of that type.

A quick fix for Google would be to ignore those parameters in webmaster tools, MSN also has an ignore parameter tool.

Share this post


Link to post
Share on other sites

Thank you for your answers.

My canonical tags are ok, pagination too (page2, 3 ..
If I have to make 301 individual ad tags it's about 1500 line on my htaccess. aie, aie, aie in french !

 

 


Osc 2.3.4

mts template

Share this post


Link to post
Share on other sites
Posted (edited)

 

In htaccess the 301 test redirects as below do not work

RewriteRule ^my-product-name-p-796.html?products_id=796.html$ https://www.mysite.com/my-product-name-p-796.html

Redirect permanent /my-product-name-p-796.html?products_id=796.html https://www.mysite.com/my-product-name-p-796.html

I think I'll leave like this

 

 

Edited by ammsimon
Incomplete

Osc 2.3.4

mts template

Share this post


Link to post
Share on other sites
1 hour ago, ammsimon said:

 

In htaccess the 301 test redirects as below do not work

RewriteRule ^my-product-name-p-796.html?products_id=796.html$ https://www.mysite.com/my-product-name-p-796.html

Redirect permanent /my-product-name-p-796.html?products_id=796.html https://www.mysite.com/my-product-name-p-796.html

I think I'll leave like this

It is probably not important to redirect these urls as I expect they work ok. However, they almost certainly come from your site, likely to be from a coding error.

You can find out where the links are being created using the internal links report in Google search console. If you want some help with this, create a separate topic and I can talk you through how to do this.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
4 hours ago, ammsimon said:

 

In htaccess the 301 test redirects as below do not work

RewriteRule ^my-product-name-p-796.html?products_id=796.html$ https://www.mysite.com/my-product-name-p-796.html

Redirect permanent /my-product-name-p-796.html?products_id=796.html https://www.mysite.com/my-product-name-p-796.html

I think I'll leave like this

 

 

That's invalid syntax. You cannot redirect query strings like that in htaccess.

You can do more harm than good when experimenting with htaccess like this, my suggestion is not to make entries in htaccess until the code you put is fully tested by someone who knows htaccess rules (which are complex).

On 7/16/2019 at 5:36 PM, Hotclutch said:

A quick fix for Google would be to ignore those parameters in webmaster tools, MSN also has an ignore parameter tool.

Just do this for now.

Share this post


Link to post
Share on other sites

Phoenix 1.0.1.4   PHP 7.3 Test site on XAMPP

Installed and works correctly, URLs are as I have them on my live site. However at the top of every page I get this.

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in D:\********\htdocs\includes\classes\seo.class.php on line 1883


OsC 2.3.4.1 CE Frozen   PHP 7.2   MySQL 10.1.36-MariaDB-cll-lve. Phoenix in development

Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix 1.0.4.0) here.

Share this post


Link to post
Share on other sites

At line 1883 in the includes/classes/seo,class.php filem change

continue;

to

continue 2;

 

Share this post


Link to post
Share on other sites

Hi 

I want to export all my dynamic generated HTML URLs to a .csv file or similar. 

Can anyone point me to how I should try this? I thought it was some value stored in the database but I see its not so easy...

 

Share this post


Link to post
Share on other sites
30 minutes ago, magak2015 said:

I want to export all my dynamic generated HTML URLs to a .csv file or similar. 

I do not know the answer.  But if I were trying to do this, I would look at sitemap Apps

Why?  Because they generate listings of URLs and should use the same generation mechanism as osCommerce uses for regular links.  Perhaps not all of them would be compatible with this App, but at least one should. 


Always back up before making changes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×