Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Recommended Posts

Hi Chemo, I need your help, please.

I am installing the SEO module, but when I get to see each item, I get error, the strange thing isthat theurlof each productis already inhtml.

Chemo is no longer with us.

 

What is the error?

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi. Thanks for looking at my post. I'm having trouble trying to use a 301 redirect from an old page to a new one using the .htaccess file. This is the code I used:

 

 

redirect 301 /old/old.htm

 

It didn't work. Could it be the other code in the .htaccess file regarding Ultimate SEO URL's that is keeping me from doing this? How do I change it? Also, I heard that if you have too many lines of code in your .htaccess file it could slow down your site. Is this true?

 

Thanks so much,

 

Jason

Link to comment
Share on other sites

Hi. Thanks for looking at my post. I'm having trouble trying to use a 301 redirect from an old page to a new one using the .htaccess file. This is the code I used:

 

 

redirect 301 /old/old.htm

 

 

 

It didn't work. Could it be the other code in the .htaccess file regarding Ultimate SEO URL's that is keeping me from doing this? How do I change it? Also, I heard that if you have too many lines of code in your .htaccess file it could slow down your site. Is this true?

 

Thanks so much,

 

Jason

Redirect old url's isn't something covered in this trhead. You can post in the general forum or search the web for how to do it.

 

Yes, large .htaccess files can slow the site down. Actually, just using the .htaccess file in the first place will slow the site down. But the slowdown is minimal in most cases. I suppose if your .htaccess file reached 100 KB in size you might start noticing it but if it is that big, you are probably doing something wrong. Plus, it also has to do with the contents of the file, not just the size.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thanks Jack! I always think highly of your comments and experience. I guess what I was thinking was that somehow the text in the .htaccess file regarding the Ultimate SEO contribution was keeping me from redirecting old products and manufacturers using the 301 redirect code stated above. I guess this isn't the case?

 

Thanks so much!

 

Jason

Link to comment
Share on other sites

Thanks Jack! I always think highly of your comments and experience. I guess what I was thinking was that somehow the text in the .htaccess file regarding the Ultimate SEO contribution was keeping me from redirecting old products and manufacturers using the 301 redirect code stated above. I guess this isn't the case?

 

Thanks so much!

 

Jason

You're welcome. I appreciate the kind words.

 

If you don't have the rewrite engine command before your commands, then they would fail but the redirect code for this contribution wouldn't cause a problem, at least that I can think of.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hello All

I am just stuck.

I'm getting a 404 error when I click on a product or category. IE and FireFox

I'm installed in the root directory.

version 2.3.1 and 2.2d

 

any idea what I did wrong?

 

here's my entire .htaccess

 

# $Id$

#

# 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)

 

# php_value session.use_trans_sid 0

# php_value register_globals 1

 

 

# Begin Ultimate SEO V2.2d

Options +FollowSymLinks

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 the following line using the instructions above

 

RewriteBase /orleather.ipage.com/

 

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 ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}

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

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

RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_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 ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}

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

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

RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}

# End Ultimate SEO V2.2d

 

Thanks for your advice!!

Link to comment
Share on other sites

Hello All

I am just stuck.

I'm getting a 404 error when I click on a product or category. IE and FireFox

I'm installed in the root directory.

version 2.3.1 and 2.2d

 

RewriteBase /orleather.ipage.com/

 

The RewriteBase line contains your shops directory. If you shop located in the orleather.ipage.com directory? If so, please post your url.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Chemo is no longer with us.

 

What is the error?

 

Hi Jack_mcs

I am installing Ultimate SEO URLs module for osCommerce MS-2.2 or RC2, and upload the two files and change the other 4.

After loading the files, edit the last. Htaccess, but when I load it, I can not enter any of the products, because it redirects back to theindex. It is not happening.

 

Thanks so much!

CORENERED

Link to comment
Share on other sites

 

Hi Jack_mcs

I aminstallingUltimateSEOURLsmoduleforosCommerceMS-2.2orRC2, andupload thetwo filesandchangethe other 4.

After loadingthe files,edit thelast. Htaccess, but whenI load it, I can notenterany of the products, because itredirectsback to theindex. It is nothappening.

 

Thanks so much!

CORENERED

I'm not sure I understand the problem due to no spacing in your text but it sounds like you are using a template that has bad code in it. This is a common problem. See this post.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack_mcs

Sorry my english.

I'll try to explain you better.

I purchased a template from the perfectory.com page. Then install the module Ultimate SEO URLs v2.1 - by Chemo, but when I click on any product says, Not Found; Additionally, a 404 Not Found error was....

I no longer know what to do.

Help me please... unsure.png

Link to comment
Share on other sites

Hi Jack_mcs

Sorry my english.

I'll try to explain you better.

I purchased a template from the perfectory.com page. Then install the module Ultimate SEO URLs v2.1 - by Chemo, but when I click on any product says, Not Found; Additionally, a 404 Not Found error was....

I no longer know what to do.

Help me please... unsure.png

First, you should be using V2.2d, not 2.1. Once you update it, if you are still having the problem, please post the url to your shop and the .htaccess file in the root of the shop and I will take a look at them.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

First, you should be using V2.2d, not 2.1. Once you update it, if you are still having the problem, please post the url to your shop and the .htaccess file in the root of the shop and I will take a look at them.

 

Could you give me the direct link download?

Link to comment
Share on other sites

Hi,

 

I hope someone can help.

 

I have installed this contribution and it seemed fairly straight forward to install, however I am getting a 404 page for all of the URL's.

 

The admin section works fine and when I switch the contribution off in the admin cp, the site works fine again.

 

I have read about the RewriteBase / function and that if this is not configured correctly, then this can cause 404 pages (not loading), but my catalog is set in the root directory of the site, so I have set it to RewriteBase / but this still does not work.

 

My site is http://www.thelightershop.co.uk the catalog is located in the root directory.

 

This is my .htaccess file:

 

# Begin Ultimate SEO V2.2d

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 ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}

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

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

RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_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 ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}

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

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

RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}

RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}

# End Ultimate SEO V2.2d

 

In my configure.php file, I have the line:

 

define('DIR_FS_CATALOG', '/content/Hosting/t/h/thelightershop.co.uk/web/');

 

so, I have also tried:

 

RewriteBase /content/Hosting/t/h/thelightershop.co.uk/web/

 

and

 

RewriteBase /web/

 

But none of these work either. I have also double checked that I have edited and installed all of the files properly. Please help!

 

Thanks

Link to comment
Share on other sites

re: my previous post above I forgot to include the version of the contribution - V2.2d

It looks like you have everything setup correctly. You should first check with your host that mod rewrite is enabled. if it is, then try chaning this line and refreshing the home page

Options +FollowSymLinks

to

#Options +FollowSymLinks

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I managed to sort out the Zeus problem.

 

I had to convert the .htaccess Apache script to a Zeus "rewrite.script" file by modifying the script. It seems to work now, although I've not fully tested it.

 

There doesn't seem to be anywhere else on the web which gives you the script, or refers to this problem so, In case anyone else is on a Zeus server and is having the same problem - here is the rewrite script I used:

 

RULE_0_START:
# get the document root
map path into SCRATCH:DOCROOT from /
# initialize our variables
set SCRATCH:ORIG_URL = %{URL}
set SCRATCH:REQUEST_URI = %{URL}
# prepare to search for file, rewrite if its not found
set SCRATCH:REQUEST_FILENAME = %{SCRATCH:DOCROOT}
set SCRATCH:REQUEST_FILENAME . %{SCRATCH:REQUEST_URI}
look for file at %{SCRATCH:REQUEST_FILENAME}
if not exists then
look for dir at %{SCRATCH:REQUEST_FILENAME}
endif
RULE_0_END:

RULE_1_START:

match URL into $ with ^(.*)-p-(.*).html
if matched then
set URL=/product_info.php?products_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-c-(.*).html
if matched then
set URL=/index.php?cPath=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-m-(.*).html
if matched then
set URL=/index.php?manufacturers_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-pi-(.*).html
if matched then
set URL=/popup_image.php?pID=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-by-(.*).html
if matched then
set URL=/all-products.php?fl=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-t-(.*).html
if matched then
set URL=/articles.php?tPath=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-a-(.*).html
if matched then
set URL=/article_info.php?articles_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-au-(.*).html
if matched then
set URL=/articles.php?authors_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-pr-(.*).html
if matched then
set URL=/product_reviews.php?products_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-pri-(.*).html
if matched then
set URL=/product_reviews_info.php?products_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-f-(.*).html
if matched then
set URL=/faqdesk_info.php?faqdesk_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-fc-(.*).html
if matched then
set URL=/faqdesk_index.php?faqPath=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-fri-(.*).html
if matched then
set URL=/faqdesk_reviews_info.php?faqdesk_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-fra-(.*).html
if matched then
set URL=/faqdesk_reviews_article.php?faqdesk_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-i-(.*).html
if matched then
set URL=/information.php?info_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-links-(.*).html
if matched then
set URL=/links.php?lPath=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-pm-([0-9]+).html
if matched then
set URL=/info_pages.php?pages_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-n-(.*).html
if matched then
set URL=/newsdesk_info.php?newsdesk_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-nc-(.*).html
if matched then
set URL=/newsdesk_index.php?newsPath=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-nri-(.*).html
if matched then
set URL=/newsdesk_reviews_info.php?newsdesk_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-nra-(.*).html
if matched then
set URL=/newsdesk_reviews_article.php?newsdesk_id=$2&%
goto QSA_RULE_START
endif

match URL into $ with ^(.*)-po-([0-9]+).html
if matched then
set URL=/pollbooth.php?pollid=$2&%
goto QSA_RULE_START
endif

RULE_1_END:

QSA_RULE_START:
# append the query string if there was one originally
# the same as [QSA,L] for apache
match SCRATCH:ORIG_URL into % with \?(.*)$
if matched then
set URL = %{URL}&%{SCRATCH:QUERY_STRING}
endif
goto END
QSA_RULE_END:

Link to comment
Share on other sites

Hi.

V2.2d version already installed and I check my files multiple times.

This is my .htaccess

But now whenI click onany product,it returns the index.

http://medirsei.co/

My host is godaddy.com

 

 

# Begin Ultimate SEO V2.2d
#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 ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_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 ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING}
# End Ultimate SEO V2.2d

Edited by CORENERED
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...