Jump to content
spidometrs

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

Recommended Posts

Installed on my site is Ultimate SEO URLs v2.2d contribution.( Unfortunately, I do not know the “sub-version”.) It seems to be working fine. However, I’m not exactly sure what types of re-directing this contribution is supposed to handle and what it does not address.

 

First of all, category and product pages correctly appear as:

 

http://www.domain.com/valid-category-name-c-22.html

http://www.domain.com/valid-product-name-p-44.html

 

That’s the first hurdle!

 

When the text portion of a category (or product) URL is altered, such as http://www.domain.com/valid-WRONG -category-name-c-22.html, the URL is correctly redirected (“301 Moved Permanently“) back to the valid URL.

 

That’s the second hurdle!

 

However, when the category or product number in a URL is altered to a nonexistent number, such as http://www.domain.com/valid-category-name-c-2999992.html, the page is redirected (“301 Move Permanently “) to http://www.domain.com/-c-2999992.html, a nonexistent page. The page layout is similar to other pages but merely states “Let’s See What We Have Here” in the center. In the situation of a URL being altered to a nonexistent category (or products) number, shouldn’t a 404 response (not a 301) be displayed?

 

Also, when a product that is marker inactive/inaccessible is attempted to be accessed, the address bar still displays the valid URL, the page content is displayed as “Page Not Found” and a 200 http header response code is returned. Is a 200 code correct for a product/page that is no longer available? Should a 404 code be returned?

 

Thanks.

Share this post


Link to post
Share on other sites

However, when the category or product number in a URL is altered to a nonexistent number, such as http://www.domain.com/valid-category-name-c-2999992.html, the page is redirected (“301 Move Permanently “) to http://www.domain.com/-c-2999992.html, a nonexistent page. The page layout is similar to other pages but merely states “Let’s See What We Have Here” in the center. In the situation of a URL being altered to a nonexistent category (or products) number, shouldn’t a 404 response (not a 301) be displayed?

 

Also, when a product that is marker inactive/inaccessible is attempted to be accessed, the address bar still displays the valid URL, the page content is displayed as “Page Not Found” and a 200 http header response code is returned. Is a 200 code correct for a product/page that is no longer available? Should a 404 code be returned?

Both of those problems have been reported and are on the todo list, though I don't know when the changes will be made.

Share this post


Link to post
Share on other sites

Thanks for the reply, Jack_mcs. I didn't know if there was something else I needed to do to get the desired redirects.

 

The good news is it looks like I have the contribution installed correctly and functioning properly!

Share this post


Link to post
Share on other sites

any ideas? everything is working great on front end, but this error in the backend

 

1146 - Table 'osc.cache' doesn't exist

 

DELETE FROM cache WHERE cache_name LIKE '%seo_urls%'

 

[TEP STOP]

 

Thanks

-matt

Share this post


Link to post
Share on other sites

any ideas? everything is working great on front end, but this error in the backend

 

1146 - Table 'osc.cache' doesn't exist

 

DELETE FROM cache WHERE cache_name LIKE '%seo_urls%'

The error is saying the cache table doesn't exist in the database. That table gets created automatically when you run this contribution for the first time on the shop side. I've never seen that failure and can't guess as to why it would occur. If there is a settings section in admin for this contributions, admin->Configuration->SEO URLs, then try using the uninstall option and then clicking the home link on your shop side to re-insall it. Otherwise, you will need to go into the database and remove the change it has made. This all assumes you are using my latest version. Others may not work this way.

Share this post


Link to post
Share on other sites

Tried uninstalling SEO database entries and let it reinstall but it just doesnt create the cache database entries. running clean install of U SEO 2.2d. do you know where I can find the mysql entries for the cache folder so I can add manually?

 

I found this entry inside the seo.class.php file

 

CREATE TABLE `cache` (

`cache_id` varchar(32) NOT NULL default '',

`cache_language_id` tinyint(1) NOT NULL default '0',

`cache_name` varchar(255) NOT NULL default '',

`cache_data` mediumtext NOT NULL,

`cache_global` tinyint(1) NOT NULL default '1',

`cache_gzip` tinyint(1) NOT NULL default '1',

`cache_method` varchar(20) NOT NULL default 'RETURN',

`cache_date` datetime NOT NULL,

`cache_expires` datetime NOT NULL,

PRIMARY KEY (`cache_id`,`cache_language_id`),

KEY `cache_id` (`cache_id`),

KEY `cache_language_id` (`cache_language_id`),

KEY `cache_global` (`cache_global`)

) TYPE=MyISAM;

 

But not sure if that is the correct entrie.

 

running osc 2.2rc2a with 2.3 manual updates.

 

thanks, matt

Edited by mrossi

Share this post


Link to post
Share on other sites

Tried uninstalling SEO database entries and let it reinstall but it just doesnt create the cache database entries. running clean install of U SEO 2.2d. do you know where I can find the mysql entries for the cache folder so I can add manually?

 

I found this entry inside the seo.class.php file

That's the correct code.

Share this post


Link to post
Share on other sites

hello everyone.

I installed Ultimate SEO URLs v2.1 and it works.

but would like to hear whether it is possible to get / in the url.

Like hardware/graphics-cards/matrox-g400-32mb and avoid the latter as p-2 in the end.

 

Greetings Narkomic

Edited by Narkomic

Share this post


Link to post
Share on other sites

hello everyone.

I installed Ultimate SEO URLs v2.1 and it works.

Im using oscommerse 2.3.1

but would like to hear whether it is possible to get / in the url.

Like hardware/graphics-cards/matrox-g400-32mb and avoid the latter as p-2 in the end.

 

Greetings Narkomic

Edited by Narkomic

Share this post


Link to post
Share on other sites

hello everyone.

I installed Ultimate SEO URLs v2.1 and it works.

Im using oscommerse 2.3.1

but would like to hear whether it is possible to get / in the url.

Like hardware/graphics-cards/matrox-g400-32mb and avoid the latter as p-2 in the end.

You can't do that with the current version. I seem to recall someone positng a change for that not long ago but I don't know how many pags page that would be.

Share this post


Link to post
Share on other sites

Dear I have some question about currency.

 

On my shop i got Ultimate Seo Urls v2.5 (18 Aug 2008)

Which I'm afraid to upgrade as i made many many changes, and my shop are quit well rank on google so I don't want to crash everything, but I got a question.

 

 

About currency:

I got on all my page a link to the other currency, so $ from € et € from $

as : http://www.my-shop.com/fr/product-example.html?currency=USD'>http://www.my-shop.com/fr/product-example.html?currency=USD

and I make a 301 from http://www.my-shop.com/fr/product-example.html?currency=USD'>http://www.my-shop.com/fr/product-example.html?currency=USD to http://www.my-shop.com/fr/product-example.html

as I don't want to this url on google.

http://www.my-shop.com/fr/product-example.html?currency=USD'>http://www.my-shop.com/fr/product-example.html?currency=USD

http://www.my-shop.com/fr/product-example.html?currency=EUR

http://www.my-shop.com/fr/product-example.html

 

But the problem are i have to many 301 on my website?

So how do you managed it? or how the last very of Ultimate SEO deal with the différent currency?

 

Regards.

Share this post


Link to post
Share on other sites

On my shop i got Ultimate Seo Urls v2.5 (18 Aug 2008)

Which I'm afraid to upgrade as i made many many changes, and my shop are quit well rank on google so I don't want to crash everything, but I got a question.

 

About currency:

I got on all my page a link to the other currency, so $ from € et € from $

as : http://www.my-shop.com/fr/product-example.html?currency=USD'>http://www.my-shop.com/fr/product-example.html?currency=USD

and I make a 301 from http://www.my-shop.com/fr/product-example.html?currency=USD'>http://www.my-shop.com/fr/product-example.html?currency=USD to http://www.my-shop.com/fr/product-example.html

as I don't want to this url on google.

 

But the problem are i have to many 301 on my website?

So how do you managed it? or how the last very of Ultimate SEO deal with the différent currency?

No one is supporting that version so you are out of luck getting help with it. However, what you are talking about is handling duplicate pages. That is best handled by using the canonical meta tag and doesn't have anything to do with this contribution. Use either the Header Tags SEO contribution (recommended) or there is another contribution that handles that. I don't recall the name of the latter but I'm sure you can find it by searching the addons.

Share this post


Link to post
Share on other sites

Hi Jack,

 

I'm having a new problem with one of the sites (yourshaver.dk)

 

I changed the category structure, with 3 main categories this time:


  •  
  • Gillette Razor Blades for Men
  • Gillette Razor Blades for Women
  • Oral-B Replacement Brush Heads
     

These categories have further sub-categories in them. However, if you click on any category and roll over the sub-categories, you'll see that the URLs are not showing correctly.

 

For example, Gillette Mach3 should be http://www.yourshaver.dk/gillette-mach3-c-36_21.html instead of http://www.yourshaver.dk/?cPath=36_21

 

Help please.

 

Thanks!

Share this post


Link to post
Share on other sites

I'm having a new problem with one of the sites (yourshaver.dk)

 

I changed the category structure, with 3 main categories this time:

These categories have further sub-categories in them. However, if you click on any category and roll over the sub-categories, you'll see that the URLs are not showing correctly.

 

For example, Gillette Mach3 should be http://www.yourshaver.dk/gillette-mach3-c-36_21.html instead of http://www.yourshaver.dk/?cPath=36_21

What version of Ultimate SEO are you using?

Edited by Jack_mcs

Share this post


Link to post
Share on other sites

Tried uninstalling SEO database entries and let it reinstall but it just doesnt create the cache database entries. running clean install of U SEO 2.2d. do you know where I can find the mysql entries for the cache folder so I can add manually?

 

I found this entry inside the seo.class.php file

 

CREATE TABLE `cache` (

`cache_id` varchar(32) NOT NULL default '',

`cache_language_id` tinyint(1) NOT NULL default '0',

`cache_name` varchar(255) NOT NULL default '',

`cache_data` mediumtext NOT NULL,

`cache_global` tinyint(1) NOT NULL default '1',

`cache_gzip` tinyint(1) NOT NULL default '1',

`cache_method` varchar(20) NOT NULL default 'RETURN',

`cache_date` datetime NOT NULL,

`cache_expires` datetime NOT NULL,

PRIMARY KEY (`cache_id`,`cache_language_id`),

KEY `cache_id` (`cache_id`),

KEY `cache_language_id` (`cache_language_id`),

KEY `cache_global` (`cache_global`)

) TYPE=MyISAM;

 

But not sure if that is the correct entrie.

 

running osc 2.2rc2a with 2.3 manual updates.

 

thanks, matt

 

If you have php5.3 then TYPE= is now obsolete - need to change to ENGINE=

 

I have just done it and it worked!

Share this post


Link to post
Share on other sites

I am using Ultimate_SEO_URLSv22d_9.zip file on this site.

You should upgrade to d_11 though I doubt it will help with this problem. This problem is most likely due to the category box you are using not formatting the links correctly. You can verify that by clicking on this link: http://www.yourshaver.dk/index.php?cPath=36_21. You'll notice the rewrite works fine.

Share this post


Link to post
Share on other sites

You should upgrade to d_11 though I doubt it will help with this problem. This problem is most likely due to the category box you are using not formatting the links correctly. You can verify that by clicking on this link: http://www.yourshaver.dk/index.php?cPath=36_21. You'll notice the rewrite works fine.

 

Thank you very much! I will check the category box and see if I can fix it up.

 

Edit: The sub-categories displayed on a category page are working alright.. (e.g. page: http://www.yourshaver.dk/gillette-razor-blades-c-36.html)

Edited by rosiee007

Share this post


Link to post
Share on other sites

Hi everyone.

 

I'm wondering is anybody could help me to sort out the implementation of SEO URLs into some shop. It's OSC 2.3.1, unfortunatelly modified with the theme applied that I think is making some issue.

 

After installing the SEO URLs v 2.1 I receive an error:

 

Warning: require(includes/classes/logger.php) [function.require]: failed to open stream: No such file or directory in /home/ur139661/public_html/sklep/includes/application_top.php on line 74

Warning: require(includes/classes/logger.php) [function.require]: failed to open stream: No such file or directory in /home/ur139661/public_html/sklep/includes/application_top.php on line 74

Fatal error: require() [function.require]: Failed opening required 'includes/classes/logger.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ur139661/public_html/sklep/includes/application_top.php on line 74

 

I attach both application_top.php files:

application_top_template.php is the one that the shop works with

application_top_SEO_URLs.php is the one with applied changes for SEO URLs, that gives the error.

 

application_top_template.php

application_top_SEO_URLs.php

 

If anyone would be so kind to take a look and help a noob, I would be very greatful :P

Share this post


Link to post
Share on other sites

After installing the SEO URLs v 2.1 I receive an error:

 

Fatal error: require() [function.require]: Failed opening required 'includes/classes/logger.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')

No one is supporting that version so you won't get much help with it. You should be using V 2.2d, but that's your choice. As for the problem, you probably overwrote something in the file since the error is saying a file not related to this contribution is missing.

Share this post


Link to post
Share on other sites

No one is supporting that version so you won't get much help with it. You should be using V 2.2d, but that's your choice. As for the problem, you probably overwrote something in the file since the error is saying a file not related to this contribution is missing.

 

Thanks Jack_mcs.

 

I'm afraid (after detailed check) that in one of the files the content replaced when installing the contribution was not exactly the same as original. Probably the template has changed something inside this piece.

 

I will try to look after v 2.2...

Share this post


Link to post
Share on other sites

@Jack_mcs thanks for your answer.

Anyway if you don't use or not the same version, But I think I wasn't enough clear.

 

So to change the currency you still using the parameter un url as http://www.exmple.com/...-p-1212.html?currency=USD

?

This contribution doesn't change the arguments in the url's. It isn't the job of a url rewriter to do that. You need to use one of the contribution I mentioned if you want the arguments handled.

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

×