Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ULTIMATE Seo Urls 5 - by FWR Media


Recommended Posts

I installed this about 3 years ago and to be perfectly honest I have no idea if it is actually working or not. I am not sure if there were bugs at that time but one thing that I know that is defintely not working and is my main concern, is for my website, i.e. www.nontando.com when you select one of my categories, lets say masks it displays the url as

http://www.nontando.com/index.php/masks-c-29

 

where based on my config settings (see below) it should not be displaying the index.php

Ideally all I want for SEO purposes is just: www.nontando.com/masks

Anyway, I dotn know if this the problem but the config settings has it as "mysite". I have no idea how I can reset/change this to nontando.com - defintely cannot do it thru config?

Below is my current settings as appearing on config ...

 

ANy guidance will be much appreciated

Gary

 

 

 

Enable SEO URLs 5? true

Enable the cache? true

Enable multi language support? false

Output W3C valid URLs? true

Select your chosen cache system? mysql

Set the number of days to store the cache. 7

Choose the uri format standard

Choose how your product link text is made up p

Filter Short Words 3

Add category parent to beginning of category uris? false

Remove all non-alphanumeric characters? false

Add cPath to product URLs? false

Enter special character conversions. (Better to use the file

Turn performance reporting on true/false. false

Turn variable reporting on true/false. false

Force www.mysite.com/ when www.mysite.com/index.php true

Reset USU5 Cache

Edited by bksbeat
Link to comment
Share on other sites

Okay had someone take a look at my issue...here is his comments....

Initial Investigation:

Site urls are appearing http://www.nontando.com/index.php/beadwork-c-54 because "Choose the uri format" to "Standard" in Seo Urls 5 configuration. To remove index.php from url "Choose the uri format" should be set to "rewrite".

I tried to do but gives 404 error on front end.

Also checked htaccess and found no rules has been defined.

Please ask your developer who installed the contribution to add respective htaccess changes.

I found your store is on production mode and there are orders coming.

Changing anything in htaccess can might down the site.

 

Can someone that knows this contr. give me an idea why resetting it to "rewrite" will cause a 404 error?

Link to comment
Share on other sites

@@bksbeat

 

USU5 has install and operation instructions, if you read them all will become clear.

Link to comment
Share on other sites

This is what my root htaccess file looks like now.....

 


# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
 <IfDefine SSL>
   SetEnvIf User-Agent ".*MSIE.*" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>



# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#
#<IfModule mod_php4.c>
#  php_value session.use_trans_sid 0
#  php_value register_globals 1
#</IfModule>

 

 

this is what I am recommended to inset as per the contribution (or partly thereof)

 

# If you are getting errors you may need to comment this out like ..
# Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
<IfModule mod_rewrite.c>
 RewriteEngine On
 # RewriteBase instructions
 # Change RewriteBase dependent on how your shop is accessed as below.
 # http://www.mysite.com = RewriteBase /
 # http://www.mysite.com/catalog/ = RewriteBase /catalog/
 # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/
 # Change RewriteBase using the instructions above
 RewriteBase /
 RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]
 # Articles contribution
 RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]
 # Information pages
 RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]
 # Links contribution
 RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]
 # Newsdesk contribution
 RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]
 RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]
</IfModule>

 

 

This is how I would like my shop to be accessed.

 

# http://www.mysite.com = RewriteBase /

 

 

At this moment, if I take the recommended htacess code and insert it in and ftp it across as soon as I change my config settings for uri format to rewrite

I get an error and forced to remove the code that I have added to htacess.

 

Hence, if someone can just tell me, based on what i am trying to do, what code exactly am I suppose to add to htaccess.

 

Thanks, Gary

Edited by bksbeat
Link to comment
Share on other sites

@@bksbeat

 

Sounds like the server does not have mod_rewrite loaded.

Link to comment
Share on other sites

Since I am using the multilanguage option, I would like to automatically remove the "language=XX" parameter from all URLs. If we use an old, pre-usu5 URL with the language parameter to access the site, the new, redirected URL shouldn't include the "language" parameter, as it is no longer used and redundant.

 

How do I change this?

 

Example:

 

This old URL from Google's index:

http://www.example.com/product_info.php/products_id/1234/language/de

 

redirects to this:

http://www.example.com/de/my-category/my-product-p-1234.html?language=de

 

The "?language=de" part should not be carried over from the old URL.

 

Any idea how this could be done?

Link to comment
Share on other sites

@@bksbeat

 

It's their job to know.

 

I can't know your server settings, all I can say is that if you install USU5 correctly, as per the instructions then it will work.

 

<?php
phpinfo();

 

Saved as a file will show you if mod_rewrite is loaded.

Link to comment
Share on other sites

Any idea how this could be done?

 

USU is redirecting correctly, you would need to make some code modifications.

Link to comment
Share on other sites

Thanks Robert - I appreciate your support and patience.

Between my hosting company and Oscommerce, it has become too frustrating for me.

I dont how to resolve this. I have shared with you my htaccess file and anything I seemed to add to this file, causes an error. I dont know enough about server settings, etc, and what is required here.

 

I am planning to recreate my website using weebly - i know a few others that have moved across and they are all extremely happy

Link to comment
Share on other sites

Sorry if this has been answered but I can't find it.

I just installed this to an exsiting site and it works great except one thing. I now don't have any of my bottons and the top shows

HEADER_TITLE_TOP » HEADER_TITLE_CATALOG » Candles » Scented Jars » 13799

It looks like there is something wrong in the def's but can't find where. They were fine befor the install.

Check www.a1worldofgifts.com out and you will see what I mean.

Edited by crwhite57
Link to comment
Share on other sites

Sorry if this has been answered but I can't find it.

I just installed this to an exsiting site and it works great except one thing. I now don't have any of my bottons and the top shows

HEADER_TITLE_TOP » HEADER_TITLE_CATALOG » Candles » Scented Jars » 13799

It looks like there is something wrong in the def's but can't find where. They were fine befor the install.

Check www.a1worldofgifts.com out and you will see what I mean.

 

This is not related to USU5.

 

Most of these defines are in the language files ( like TEXT_GREETING_GUEST is includes/languages/[my_language].php )

 

The ones at the top relate to the header tag script.

Link to comment
Share on other sites

Hi

The contribution is great, I just wanted to remove the .php extension from custom information pages such as shipping.php or about_us.php.

I tried adding this to the .htaccess

  RewriteRule ^([a-z0-9-/]+)-a-([0-9]+).html$ about_us.php [NC,L,QSA]

 

but didn't work, @@FWR Media is it possible to remove the .php extension is osc?, i have read how to do it on a website but the methods didn't work for my oscommerce site.

Edited by al3ks

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

This thread is for USU5 support and your question is outside of that, really for the general forums.

 

Try something like: -

 

RewriteRule ^shipping$ shipping.php [NC,L,QSA]

 

or multiples: -

 

RewriteRule ^(account|contact|privacy|shipping)$ $1.php [NC,L,QSA]

Edited by FWR Media
Link to comment
Share on other sites

sorry for posting in the wrong forum.

 

I tried the two examples but they didn't work, I have made a thread in general forums.

Thanks.

Edited by al3ks

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

I have installed the 21 Mar 2011 version of this contribution and it all seems to work fine. Should i be seeing an instant increase in traffic with this installed correctly? As it has been about 4 weeks and all I have seen is a decline on my web stats - dropping from 1100 visits a day to nearer 100 a day. I know search engines can take a while to catch up but is this normal?

 

Can anyone help or give me an indication of how long it took to see an increase in traffic

 

Cheers

Edited by randy4uk
Link to comment
Share on other sites

No .. absolutely nothing SEO based has an immediate effect, it can take months to see improvements.

 

Also bear in mind that informative link text no longer has so much of an SEO benefit, although it is still thought to have some.

 

Also don't forget the other 50% of SEO which is the user.

 

If you were looking for a red Ferrari would you click the link

 

product_id=34&cPath=38

 

or

 

beautiful-red-ferrari-p-34.html

Link to comment
Share on other sites

Robert,

 

One hundred and eighty five pages of support and your still going strong, many thanks for your contribution and your time! I would hope you don't find my upcoming request too troublesome.

 

Currently, my product pages are linked using the brand product format (bp) as set in the admin panel. Links of this sort appear on my site (correctly) as:

sunice-golf-grove-full-stretch-waterproof-pant-black-p-1623.html

 

On the same page if you desire to read a product review the link appears as:

grove-full-stretch-waterproof-pant-black-pr-1623.html

 

As you can see, the reviews link is missing the brand name. Is there a way in which I can add the brand name, and if so, would you be willing to help me accomplish this goal?

 

Thanks for your reading, I look forward to your reply.

 

- Ryan

Link to comment
Share on other sites

Is there a way in which I can add the brand name, and if so, would you be willing to help me accomplish this goal?

 

Thanks for your reading, I look forward to your reply.

 

- Ryan

 

You need to look at catalog/includes/modules/ultimate_seo_urls5/page_modules/product_reviews.php

 

Change the query to extract the manufacturers name

 

Create code or a method to order the link_text array to manufacturer - product_name before it is passed into $this->linktext() near the bottom. E.g. the product_info.php module has Product_Info_Page_Module::linkTextOrder().

 

If you do this however you must also create permanent 301 redirects from the old uri to the new.

Link to comment
Share on other sites

Hi Robert and all, This is a great contribution and I would really like to get it working.

 

I am getting an error. The new urls generate fine, however the page will not display. The error message I get is "This webpage has a redirect loop" .

 

I am using a pretty old and modified 2.2-MS2 PHP 5.2.17.

 

Years ago I had tried the original Ultimate SEO URL without any luck. I have uninstalled that one, and I have tried removing any redirects from my .htaccess but the "redirect loop" error remains.

 

I imagine I have some nonstandard function somewhere from something thats been changed over the years?

 

I would appreciate any advise from anyone who has any suggestion on what to try.

 

Thanks for the help.

 

Steve.

 

P.S. Have been using osCommerce since 2003 and this is my first call for help. Its a great package.

Link to comment
Share on other sites

I am getting an error. The new urls generate fine, however the page will not display. The error message I get is "This webpage has a redirect loop" .

 

Sorry I didn't reply to your personal contact, caught me a bit busy.

 

If the URLs are being generated fine then it is one of a few things.

 

1) .htaccess settings ( although I wouldn't expect a redirect loop from here )

2) Admin settings - turn off the option to redirect index.php to root domain.

3) Your includes/configure.php settings are incorrect.

4) You are using path_standard and AcceptPathInfo is not set to On ( this can go in .htaccess )

5) You have a very strnge server set up that I've never come across :)

 

Is it a linux server?

Edited by FWR Media
Link to comment
Share on other sites

Hi, I've just installed the module on the v2.3.2. The module worked well for the english language, however for asian languages (e.g. japanese, chinese) the links do not come out well and have strange symbols attached to the link, both in FF and IE. Any advice is appreciated. Thank you.

Link to comment
Share on other sites

You need to add a character converion file named the same as your language in: -

 

catalog/includes/modules/ultimate_seo_urls5/includes/character_conversion/

 

Have a look at the ones in "extras" in the download to see what to do.

 

This file MUST be saved as the correct charset.

 

Reset the cache in admin once done so the links can be rebuilt.

Edited by FWR Media
Link to comment
Share on other sites

Sorry I didn't reply to your personal contact, caught me a bit busy. If the URLs are being generated fine then it is one of a few things. 1) .htaccess settings ( although I wouldn't expect a redirect loop from here ) 2) Admin settings - turn off the option to redirect index.php to root domain. 3) Your includes/configure.php settings are incorrect. 4) You are using path_standard and AcceptPathInfo is not set to On ( this can go in .htaccess ) 5) You have a very strnge server set up that I've never come across :) Is it a linux server?

 

RE: Redirect Loop

 

Hi Robert,

 

Thanks for the reply. I hope I can eliminate at few options and give some more clues as to where the problem lies.

 

I'm on a Unix server, I dont think there is any problem there. I have another site that uses the original SEO URL and works fine.

 

I have got the redirect index.php to root domain turned off in admin.

 

I have tried all the url path admin settings with the same result. path_rewrite is my priority.

 

If I Enable SEO URLs 5, it will generate a nice url but I get the redirect loop message. If I disable the module and then refresh the product_info page it will use the .htaccess rule

 

RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]

 

to display the product_info page but goes to "no product found"

 

When I use a modified rule

 

RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php?products_id=$2 [NC,L,QSA]

 

It will display the product_info page properly, but when I enable the module it has the redirect loop error again.

 

So the .htaccess redirect works but not when the module is enabled.

 

I think the problem is separate to the .htaccess settings. Even when I strip all the rewrites from .htaccess I get the same redirect loop error.

 

If there is a problem in my includes/configure.php settings I can't see it, but am happy to show them to you.

 

Another clue may be when I first did the install the cache database table did not install and I had to run SQL query manually to insert the usu_cache table. I have tried turning the enable cache setting off in admin. Also when I try Reset USU5 Cache I get an error (but this might just be because the table is already empty).

 

I don't know if I have narrowed it down at all...

 

Thanks for your time. Steve

Link to comment
Share on other sites

This worries me: -

 

RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]

 

to display the product_info page but goes to "no product found"

 

When I use a modified rule

 

RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php?products_id=$2 [NC,L,QSA]

 

It will display the product_info page properly, but when I enable the module it has the redirect loop error again.

 

That is incorrect ( on any version of server I've ever seen ).

 

RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]

 

Cannot match a standard product_info.php url, what your new RewriteRule did was pretty much nothing. QSA means Query String Attached.

 

Have you asked the people who run your server because in years of this contrib being available I've never heard anything like this.

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...