Jump to content
spidometrs

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

Recommended Posts

That is correct. However, there seems to be problem with your shops setup. If you scroll over the first category on the page (not in the categories box), the url is index.php/cPath/55. That is the type of url that is created when the search engine friendly option is enabled. But this contribution turns that option off so it shouldn't be possible for it to be on. So there is a mistake in the setup somewhere, though I can't say where. But I would look at that setting first. Also turn of cache if that is enabled to be sure it is not interferring in any way.

 

The categories outside of the category box are custom hard coded HTML that I need to update to link to the correct SEO URL. I've turned off the osCOmmerce cashing system as well as all the Ultimate SEO URLs cache settings and it's still doing the same thing :(

 

Again, your help is greatly appreciated :)

Share this post


Link to post
Share on other sites

The categories outside of the category box are custom hard coded HTML that I need to update to link to the correct SEO URL. I've turned off the osCOmmerce cashing system as well as all the Ultimate SEO URLs cache settings and it's still doing the same thing :(

 

Again, your help is greatly appreciated :)

The only other thing left that I can think of, short of an incorrect installation, of course, if that mod rewrite is not enabled on the server. You should check with your host on that. If it is, then there has to be something wrong in the installation, as far as I can see, but it isn't something that can be handled here.

Share this post


Link to post
Share on other sites

I did go back through the instruction set tonight and found that all changes had been made as directed with the contribution.

 

With the re-written seoclass.php, we get urls such as:

 

http://www.cactustactical.com/osc/php4?cPath=464&filter_id=39

 

Putting the seoclass.php back from 2.1d, the url is redirected as:

 

http://www.cactustactical.com/osc/german-sport-guns-c-464.html?filter_id=39.

 

As mentioned previously, I do not back out the changes other than the re-written seoclass.php and things work fine, so something in the seoclass.php is toxic to how the site is setup.

 

At this point, other than being a matter of curiousity as to why this is happening, I am content to leave 2.1d live as we work towards php5. We were trying to reduce script execution time a bit and this would have helped.

 

 

regards

 

 

 

Hi I have just installed this ( not looked at it for ages ) and it works fine so all I can think of is that you haven't replaced the existing seo urls file changes with those of r-172. There are differences.

 

Admittedly I didn't include any upgrade instructions but if you read between the lines it is quite simple..

 

Wherever there is a change to be made there will be some existing code to replace .. e.g.

 

application_top.php

Replace the existing usu2 code under require(DIR_WS_LANGUAGES . $language . '.php');

 

html_output.php

Replace the complete function tep_href_link()

 

general.php

Replace the complete function tep_redirect()

 

product_listing.php change the code if it exists, if not then you're fine

 

admin/categories - replace the code there

 

admin/includes/functions/general.php replace the complete function tep_reset_cache_data_seo_urls()

 

That's it.

 

If you continue to have problems please let me know what they are but at this point you'll probably be best off staying with 2.1d ORIGINAL updated the contribution has not been improved since then except for the replacement of ereg which won't matter to you as you are on PHP4 plus the addition of some obscure contribution support ( and some bugs ).

Share this post


Link to post
Share on other sites

I did go back through the instruction set tonight and found that all changes had been made as directed with the contribution.

 

With the re-written seoclass.php, we get urls such as:

 

http://www.cactustactical.com/osc/php4?cPath=464&filter_id=39

It isn't possible for version 2.2d to output urls like that so either you are using 2.2d or there is something wrong in the shop. Like you, I would like to know but it may be one of those questions that never gets answered.

Share this post


Link to post
Share on other sites

It isn't possible for version 2.2d to output urls like that so either you are using 2.2d or there is something wrong in the shop. Like you, I would like to know but it may be one of those questions that never gets answered.

 

Jack,

 

using Ultimate SEO Urls 2.1d

 

and it works just peachy.

 

Problem comes in from the re-written seoclass.php of r-172 as was written about several days ago. Nothing wrong in the shop as the orders continue to pour in. :-)

Share this post


Link to post
Share on other sites

I did go back through the instruction set tonight and found that all changes had been made as directed with the contribution.

 

With the re-written seoclass.php, we get urls such as:

 

http://www.cactustactical.com/osc/php4?cPath=464&filter_id=39

 

Putting the seoclass.php back from 2.1d, the url is redirected as:

 

http://www.cactustactical.com/osc/german-sport-guns-c-464.html?filter_id=39.

 

As mentioned previously, I do not back out the changes other than the re-written seoclass.php and things work fine, so something in the seoclass.php is toxic to how the site is setup.

 

At this point, other than being a matter of curiousity as to why this is happening, I am content to leave 2.1d live as we work towards php5. We were trying to reduce script execution time a bit and this would have helped.

 

Are you running PHP as a CGI?

 

What happens if you change the $PHP_SELF = line in application_top.php to ..

 

  $PHP_SELF = (((strlen(ini_get('cgi.fix_pathinfo')) > 0) && ((bool)ini_get('cgi.fix_pathinfo') == false)) || !isset($HTTP_SERVER_VARS['SCRIPT_NAME'])) ? basename($HTTP_SERVER_VARS['PHP_SELF']) : basename($HTTP_SERVER_VARS['SCRIPT_NAME']);

 

The urls with php4 are actually actually produced on the page or the script is redirected to this url?

Share this post


Link to post
Share on other sites

Jack,

 

using Ultimate SEO Urls 2.1d

 

and it works just peachy.

 

Problem comes in from the re-written seoclass.php of r-172 as was written about several days ago. Nothing wrong in the shop as the orders continue to pour in. :-)

Oh, I thought you were trying to get 2.2d to work. 2.2d is the only one without problems. If you want to stick with a different version you'll need to work through it yourself or hope its programer assists. Good luck.

Share this post


Link to post
Share on other sites

Oh, I thought you were trying to get 2.2d to work. 2.2d is the only one without problems. If you want to stick with a different version you'll need to work through it yourself or hope its programer assists. Good luck.

 

A ridiculous 11 versions, numerous bugs introduced that were never there before and yet "2.2d is the only one without problems".

 

After 11 versions I'd expect it to make the coffee!!

 

You really do make me laugh.

Share this post


Link to post
Share on other sites

V11 is mainly just a place holder because so many perople were having problems due to installing the Polish version, thinking it is the one to use since it was the latest. But there are some important differences between d-9 and d-10 so you should upgrade. All you need to do is download d-11, extract the includes/classes/seo.class.php and upload it to your server. Then go to your home page to install it. That will reset your admin settings so you may want to note those if you are not using the default one.

 

Hi. How do I know if the new get installed?

I overwrite my old file "seo.class.php" in the folder /includes/classes/.

Then i go to my homepage in admin and frontside store. Then I set this to "true" "Reset SEO URLs Cache".

 

Now what? Is it finished?

Thanks guys!!

Share this post


Link to post
Share on other sites

Hi. How do I know if the new get installed?

I overwrite my old file "seo.class.php" in the folder /includes/classes/.

Then i go to my homepage in admin and frontside store. Then I set this to "true" "Reset SEO URLs Cache".

 

Now what? Is it finished?

Thanks guys!!

Assuming you are referring to version 2.2d, it has an auto installer/updater so that is all you need do. The exception is if you are upgrading from some non-v2.2d version or a very old v2.2s version. In that case, there may be file changes needed.

Share this post


Link to post
Share on other sites

I am creating a pre-fab osc setup, one contrib at a time, for osC 2.3.1 before upgrading my store (nalsworkshop.com).

 

I follow your link http://addons.oscommerce.com/info/7768 which has the following instructions:

 

Download from:

http://addons.oscommerce.com/info/2823

 

I'm installing the Ultimate SEO 2-2.2d-11 version. I'm using WAMPServer 2.1a (64 bit version) on my computer to test out installs prior to moving on to the next contrib being added.

 

Here is the problem I am currently running into with Ultimate SEO 2-2.2d-11. When I make the .htaccess file changes (including changing the RewriteBase to

RewriteBase /osc-test/

I get a 500 Internal Server Error. When I delete the .htaccess file, I get forwarded to the /install directory, but with the .htaccess file in place I am unable to even get that far.

 

Any help would be appreciated.

 

Thank you for such a great contribution. I use it on my live store which runs 2.2rc2a and have never looked back.

 

Chris / aka Naloomi

Share this post


Link to post
Share on other sites

I'm installing the Ultimate SEO 2-2.2d-11 version. I'm using WAMPServer 2.1a (64 bit version) on my computer to test out installs prior to moving on to the next contrib being added.

 

Here is the problem I am currently running into with Ultimate SEO 2-2.2d-11. When I make the .htaccess file changes (including changing the RewriteBase to

RewriteBase /osc-test/

I get a 500 Internal Server Error. When I delete the .htaccess file, I get forwarded to the /install directory, but with the .htaccess file in place I am unable to even get that far.

You have to post the url of the shop and the .htaccess file for help. Assuming this contribution is installed correctly and you have mod_rewrite enabled, that is where the problem most likely lies.

Share this post


Link to post
Share on other sites

Ultimate SEO URL's v2.2d-10

 

I recently did up a new store with and am replacing an old installation. Because of this, the old product_id's do not match the new ones. I just moved moved the beta site to the main public_html directoy and I put all the redirect url's in the .htaccess file. The problem is that when you type in one of those old URL's or click on it from google it now adds ?products_id=X to the end of the new redirect URL which prompts it to lookup and show the wrong item.

 

For example:

Old URL = http://www.customwheelsexpress.com/gear-alloy-20-gear-alloy-718mb-718-blackjack-carbon-black-matte-black-rims-set-of-p-418.html

Redirect URL = http://www.customwheelsexpress.com/gear-alloy-718b-718-blackjack-matte-black-custom-rims-wheels-p-55.html

 

If you copy that Old URL into your browser and hit go to it you will see that the new URL on the site is = http://www.customwheelsexpress.com/gear-alloy-718b-718-blackjack-matte-black-custom-rims-wheels-p-55.html?products_id=418

 

How can I get this redirect to discard the old product_id information and use the one specified in the redirect.

 

Snippet of redirect code in .htaccess file

 

#301 Redirects from Old Store to New Store
redirect 301 /chrome-xpressions-16quot-chrome-xpressions-810mb-810-cx11-machined-black-rims-set-of-p-205.html http://www.customwheelsexpress.com/chrome-xpressions-810mb-810-cx11-machined-black-custom-rims-wheels-p-48.html
redirect 301 /chrome-xpressions-17quot-chrome-xpressions-810mb-810-cx11-machined-black-rims-set-of-p-206.html http://www.customwheelsexpress.com/chrome-xpressions-810mb-810-cx11-machined-black-custom-rims-wheels-p-48.html
redirect 301 /chrome-xpressions-18-chrome-xpressions-810mb-810-cx11-machined-black-rims-set-of-p-207.html http://www.customwheelsexpress.com/chrome-xpressions-810mb-810-cx11-machined-black-custom-rims-wheels-p-48.html

 

Thanks,

Blaine

Share this post


Link to post
Share on other sites

You have to post the url of the shop and the .htaccess file for help. Assuming this contribution is installed correctly and you have mod_rewrite enabled, that is where the problem most likely lies.

 

The url wouldn't do you much good as it is on my localhost. http://localhost/osc-0d/ is the url though. However, your information about 'mod_rewrite' gave me enough information to turn on the 'mod_rewrite' on my WAMPServer, and now I get to the 'install' portion. Thank you for the information.

 

Chris / aka Naloomi

Share this post


Link to post
Share on other sites

Ultimate SEO URL's v2.2d-10

 

I recently did up a new store with and am replacing an old installation. Because of this, the old product_id's do not match the new ones. I just moved moved the beta site to the main public_html directoy and I put all the redirect url's in the .htaccess file. The problem is that when you type in one of those old URL's or click on it from google it now adds ?products_id=X to the end of the new redirect URL which prompts it to lookup and show the wrong item.

 

For example:

Old URL = http://www.customwheelsexpress.com/gear-alloy-20-gear-alloy-718mb-718-blackjack-carbon-black-matte-black-rims-set-of-p-418.html

Redirect URL = http://www.customwheelsexpress.com/gear-alloy-718b-718-blackjack-matte-black-custom-rims-wheels-p-55.html

 

If you copy that Old URL into your browser and hit go to it you will see that the new URL on the site is = http://www.customwheelsexpress.com/gear-alloy-718b-718-blackjack-matte-black-custom-rims-wheels-p-55.html?products_id=418

 

How can I get this redirect to discard the old product_id information and use the one specified in the redirect.

 

Snippet of redirect code in .htaccess file

 

#301 Redirects from Old Store to New Store
redirect 301 /chrome-xpressions-16quot-chrome-xpressions-810mb-810-cx11-machined-black-rims-set-of-p-205.html http://www.customwheelsexpress.com/chrome-xpressions-810mb-810-cx11-machined-black-custom-rims-wheels-p-48.html
redirect 301 /chrome-xpressions-17quot-chrome-xpressions-810mb-810-cx11-machined-black-rims-set-of-p-206.html http://www.customwheelsexpress.com/chrome-xpressions-810mb-810-cx11-machined-black-custom-rims-wheels-p-48.html
redirect 301 /chrome-xpressions-18-chrome-xpressions-810mb-810-cx11-machined-black-rims-set-of-p-207.html http://www.customwheelsexpress.com/chrome-xpressions-810mb-810-cx11-machined-black-custom-rims-wheels-p-48.html

 

Thanks,

Blaine

I'm getting the same issue while moving a shop from one account to another on the same server. Works on the first but not the second. I tried reset cache, deleting the database and re creating it. Double checked install, and so on...


Eric

 

Keep up on osCommerce changes and updates at

Github | Understand osCommerce a little further at OsCommerce Documentation | Copy and paste your error message in Google add "in osCommerce" at the end to get relevant answers to most issues.

Share this post


Link to post
Share on other sites

I'm getting the same issue while moving a shop from one account to another on the same server. Works on the first but not the second. I tried reset cache, deleting the database and re creating it. Double checked install, and so on...

The fix for Blaine was to change the derived urls to real urls and let Ultimate SEO do the conversion.

Edited by Jack_mcs

Share this post


Link to post
Share on other sites

The fix for Blaine was to change the derived urls to real urls and let Ultimate SEO do the conversion.

I know this sounds silly but my brain isn't functioning well at the moment...

 

Are you referring to php links? If so then this is all I use.

 

Thanks Jack


Eric

 

Keep up on osCommerce changes and updates at

Github | Understand osCommerce a little further at OsCommerce Documentation | Copy and paste your error message in Google add "in osCommerce" at the end to get relevant answers to most issues.

Share this post


Link to post
Share on other sites

I know this sounds silly but my brain isn't functioning well at the moment...

 

Are you referring to php links? If so then this is all I use.

 

Thanks Jack

You said you were having the same problem as Blaine (you quoted his problem). He used the rewritten urls in the .htaccess file like

redirect /some_product-p-23.html http://domain/some_other_product-p-24.html

What I said to do was change that to real url's, like

redirect /product_info?products_id=23 http://domain/products_info?products_id=24

These examples are not valid but you get the point. The code should be inserted before the Ultimate SEO rewrite code but after RewriteEngine On. If you are not having the same problem as him, then I don't know how to answer your questions since that is what you asked.

Share this post


Link to post
Share on other sites

Sorry Jack, it was a late night.

 

That problem was sorta my problem but not totally.

 

The is, I had created a site, and once finished I compressed it, downloaded, and then uploaded it to the clients web hosting account.

 

Once I uploaded it uncompressed, installed the DB, and made the necessary config.php file changes. The whole site works perfect but the urls.

 

All of the product urls are the same, links are the same, and so on. I don't know for sure what the issue is being its the same files, same database structure, the same everything... Its just within a different account.

 

What happens is the urls append the oscidxxxxx to the end of the seo urls so you get this my-cool-product-p-9.html?oscid=xxxxxxxx included on every url, no matter how many times you click around.

 

The above solution may still be the answer, I shall try.

 

If you would like I could pm you with a link, I'd rather not post it.

 

Thank you so much for your time

Edited by matrix2223

Eric

 

Keep up on osCommerce changes and updates at

Github | Understand osCommerce a little further at OsCommerce Documentation | Copy and paste your error message in Google add "in osCommerce" at the end to get relevant answers to most issues.

Share this post


Link to post
Share on other sites

I have installed Ultimate SEO URLs, but now I have run into an issue.

My website is www.recognizedesigns.com

 

Every time I click on a product, it gets redirected to the home page (index.php).

Anyone know how I can get this up and working? Thanks! :)

Share this post


Link to post
Share on other sites

I have installed Ultimate SEO URLs, but now I have run into an issue.

My website is www.recognizedesigns.com

 

Every time I click on a product, it gets redirected to the home page (index.php).

Anyone know how I can get this up and working? Thanks! :)

Your site and links, work on my end. It appears you don't have Ultimate SEO url turned on.


Eric

 

Keep up on osCommerce changes and updates at

Github | Understand osCommerce a little further at OsCommerce Documentation | Copy and paste your error message in Google add "in osCommerce" at the end to get relevant answers to most issues.

Share this post


Link to post
Share on other sites

Your site and links, work on my end. It appears you don't have Ultimate SEO url turned on.

 

Thanks for your fast reply. Unfortunately, we had to reverse all errors for our customers. We would still love to use this contribution. Any help would be appreciated.

Share this post


Link to post
Share on other sites

Thanks for your fast reply. Unfortunately, we had to reverse all errors for our customers. We would still love to use this contribution. Any help would be appreciated.

This would be hard to do with no information

 

If your hard coding all of your links you have to use standard php link ie <?php echo '<a href="' . tep_href_link('your_directory/your_page.php') . '">Your Text Here</a>'; ?>

Edited by matrix2223

Eric

 

Keep up on osCommerce changes and updates at

Github | Understand osCommerce a little further at OsCommerce Documentation | Copy and paste your error message in Google add "in osCommerce" at the end to get relevant answers to most issues.

Share this post


Link to post
Share on other sites

What happens is the urls append the oscidxxxxx to the end of the seo urls so you get this my-cool-product-p-9.html?oscid=xxxxxxxx included on every url, no matter how many times you click around.

That's almost always because the configure file is setup incorrectly. There are many posts in this thread about it or you can look here.

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

×