Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Recommended Posts

Hello,

 

You should upload the .htaccess file with correct content

The contribution will not work without it

 

I have to check "Show Hidden Files" in my ftp program to be able to see the .htaccess

 

Stanislav

 

I indeed can see the HTACCESS file now (was in hidden files) only I can't get it working.

 

Can somebody please check for me how my website is builded and say what I have to change in my HTACCESS (I'm 90% shure is mistake is in that file, only I'm not experienced enough to solve te problem)

 

Many thanks in advance

Link to comment
Share on other sites

Hello,

 

You should upload the .htaccess file with correct content

The contribution will not work without it

 

I have to check "Show Hidden Files" in my ftp program to be able to see the .htaccess

 

Stanislav

 

I indeed can see the HTACCESS file now (was in hidden files) only I can't get it working.

 

Can somebody please check for me how my website is builded and say what I have to change in my HTACCESS (I'm 90% shure is mistake is in that file, only I'm not experienced enough to solve te problem)

 

Many thanks in advance

Link to comment
Share on other sites

I indeed can see the HTACCESS file now (was in hidden files) only I can't get it working.

 

Can somebody please check for me how my website is builded and say what I have to change in my HTACCESS (I'm 90% shure is mistake is in that file, only I'm not experienced enough to solve te problem)

 

Many thanks in advance

Link to comment
Share on other sites

I indeed can see the HTACCESS file now (was in hidden files) only I can't get it working.

 

Can somebody please check for me how my website is builded and say what I have to change in my HTACCESS (I'm 90% shure is mistake is in that file, only I'm not experienced enough to solve te problem)

 

Many thanks in advance

Hello,

 

Can you show the site and the content of your htaccess here?

 

 

Stanislav

Link to comment
Share on other sites

Hello,

 

Can you show the site and the content of your htaccess here?

 

 

Stanislav

 

 

Offcource! thanks for your time and effort

 

The website:

www.kledingenstickers.nl/webshop

 

The HTACCESS:

 

# $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $

#

# 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

# </kledingenstickers_public_html/webshop/>

#

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

 

# Ultimate SEO URLs BEGIN

Options +FollowSymLinks

RewriteEngine On

RewriteBase /kledingenstickers_public_html/webshop/

RewriteCond %{QUERY_STRING} ^options\=(.*)$

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2%1

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 ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING}

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

RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_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 ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING}

# BOF: "Extra pages-info box w/ admin" support added by faaliyet

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

# EOF: "Extra pages-info box w/ admin" support added by faaliyet

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

# Added polls and newsdesk

#RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$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}

# BOF: Faqdesk support added by faaliyet

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}

# EOF: Faqdesk support added by faaliyet

# Ultimate SEO URLs END

 

# Block Bad Bots

RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]

RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:[email protected] [OR]

RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]

RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]

RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]

RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]

RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]

RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]

RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]

RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]

RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]

RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]

RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]

RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]

RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]

RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]

RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]

RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]

RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]

RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]

RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]

RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]

RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]

RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]

RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]

RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]

RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]

RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]

RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]

RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]

RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]

RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]

RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]

RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]

RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]

RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]

RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]

RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]

RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]

RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]

RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]

RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]

RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]

RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]

RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]

RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]

RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]

RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]

RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]

RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]

RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]

RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]

RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]

RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]

RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]

RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]

RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]

RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]

RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]

RewriteCond %{HTTP_USER_AGENT} ^Zeus

RewriteRule .* - [F]

Link to comment
Share on other sites

Hello,

 

You should replace:

RewriteBase /kledingenstickers_public_html/webshop/

with:

RewriteBase /webshop/

 

in the htaccess file

 

 

Do you have the seo urls installed and enabled?

I see the links are not seo :

index.php?cPath=25_29

 

 

Stanislav

Edited by Pektsekye
Link to comment
Share on other sites

Hello,

 

You should replace:

RewriteBase /kledingenstickers_public_html/webshop/

with:

RewriteBase /webshop/

 

in the htaccess file

 

 

Do you have the seo urls installed and enabled?

I see the links are not seo :

index.php?cPath=25_29

 

 

Stanislav

 

 

I have updated the HTACCESS aand enaabled the SEO, only all the urls give a 404 now

Link to comment
Share on other sites

I have updated the HTACCESS aand enaabled the SEO, only all the urls give a 404 now

Hello,

 

Have you placed the htaccess to the correct directory?

webshop/.htaccess

 

Maybe you are on Windows server or your host doesn't allow to use htaccess or mod_rewrite

 

Can you contact your host support about it?

 

 

Stanislav

Link to comment
Share on other sites

Hello,

 

Have you placed the htaccess to the correct directory?

webshop/.htaccess

 

Maybe you are on Windows server or your host doesn't allow to use htaccess or mod_rewrite

 

Can you contact your host support about it?

 

 

Stanislav

 

Info about the Server:

 

Server host: www (127.0.0.2) Database host: localhost (127.0.0.1)

Server besturingssysteem: Linux 2.6.22.19-0.3-default Database: MySQL 5.0.45

Server datum: 07/06/2009 22:08:38 Datebase datum: 07/06/2009 22:08:38

Server uptime: 10:08pm up 4 days 16:07, 0 users, load average: 0.87, 1.11, 1.08

 

HTTP server: Apache/2.2.4 (Linux/SUSE)

PHP versie: 5.2.9 (Zend: 2.2.0)

 

I can ask my provier if he accepts HTACCESS changes

Link to comment
Share on other sites

Info about the Server:

 

 

 

I can ask my provier if he accepts HTACCESS changes

Hello,

 

You can try to add something like gkgdktdkh785879 to the end of the .htaccess file.

 

You site must show 500 internal server error.

 

To be sure that the server reads it and the file name is correct.

 

 

Stanislav

Edited by Pektsekye
Link to comment
Share on other sites

Hi! I've a problem with the urls or charset. The store that i develop is http://www.eladabg.com/.

I want all the urls have charset "Windows-1251". Instead of that when the site redirects me the urls look like .../%D0%BF%D0%B5%D1%80%D0%B4%D0%B5%D1%82%D0%B0-%D1%80%D0%B5%D1%81%D0%BD%D0%B8-c-49.html. This is happening only with some browsers.

Can somebody help me, please!

Thanks a lot!

Link to comment
Share on other sites

Hi! I've a problem with the urls or charset. The store that i develop is http://www.eladabg.com/.

I want all the urls have charset "Windows-1251". Instead of that when the site redirects me the urls look like .../%D0%BF%D0%B5%D1%80%D0%B4%D0%B5%D1%82%D0%B0-%D1%80%D0%B5%D1%81%D0%BD%D0%B8-c-49.html. This is happening only with some browsers.

Can somebody help me, please!

Thanks a lot!

 

Hello, Ivan

 

At the bottom of this page there is a search "Search Topic"

search for "cyrillic"

 

Read the post by FWR Media posted on May 15 2009

(it is the third for me)

 

 

 

Stanislav

Link to comment
Share on other sites

Hi,

I was wondering if you could point me in the right direction. For some reason after I installed the contribution, the main table of the design got slightly wider. Nowhere can I find where to change that in the php code and the look of it bugs me :(

 

Thanks -- ania

Link to comment
Share on other sites

Hi,

I was wondering if you could point me in the right direction. For some reason after I installed the contribution, the main table of the design got slightly wider. Nowhere can I find where to change that in the php code and the look of it bugs me :(

 

Thanks -- ania

 

Hello,

 

Can you show the site?

 

Have you found the difference in the html page source that cause this width change?

 

 

Stanislav

Link to comment
Share on other sites

hi folks,

 

how can i add a hyphen to the urls? at the moment the url shows /tshirt/ and i would like it to show /t-shirt/ im really stuck here!

 

thanks in advance!

 

Hello,

 

1) in the catalog/includes/classes/seo.class.php around line 1813

replace:

						:	"([[:punct:]])+";

with:

						:	"([^[:alnum:][:space:]-])+";

 

2) set Filter Short Words to 0 in the seo urls configuration

3) Reset SEO URLs Cache

 

 

You should understand that it makes your site unstable

as you can get an url like

catalog/hardware-t-shirt-mice-c-1_9.html

 

while the -t- means articles.php in the htaccess file:

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

 

 

 

Stanislav

Link to comment
Share on other sites

Hi all, I have just done the install for this great contribution and I have found a problem with one of my pages during the testing phase. I have tested the links in nearly every page, I have used the buy it now buttons and add to cart buttons and all seemed well until I hit a page which had the title "Mombassa Trunks - From £39.99" The category, which is Trunks and Chests, opened ok but as soon as I hit the link for the actual item the page goes into a redirect loop.

 

I eventually get the error message:

 

redirect_loop.jpg

 

The page it is trying to access is showing as:

 

http://jati-keswick.co.uk/mystore/mombassa...3999-p-520.html

 

I think the price in the title is causing this error as this is the only page with a price in the title. I do have some items which have item sizes in the title but they load ok.

 

Am I correct to think that it is the price, possibly the pound sign, which is causing the loop and is there an answer to resolve this problem?

 

I used the latest download version Ultimate SEO 2-2.2d-2 by Jack_mcs from 5 July 2009

 

Thanks

 

Michael

Edited by offie
Link to comment
Share on other sites

Hi all, I have just done the install for this great contribution and I have found a problem with one of my pages during the testing phase. I have tested the links in nearly every page, I have used the buy it now buttons and add to cart buttons and all seemed well until I hit a page which had the title "Mombassa Trunks - From £39.99" The category, which is Trunks and Chests, opened ok but as soon as I hit the link for the actual item the page goes into a redirect loop.

 

I eventually get the error message:

 

redirect_loop.jpg

 

The page it is trying to access is showing as:

 

http://jati-keswick.co.uk/mystore/mombassa...3999-p-520.html

 

I think the price in the title is causing this error as this is the only page with a price in the title. I do have some items which have item sizes in the title but they load ok.

 

Am I correct to think that it is the price, possibly the pound sign, which is causing the loop and is there an answer to resolve this problem?

 

I used the latest download version Ultimate SEO 2-2.2d-2 by Jack_mcs from 5 July 2009

 

Thanks

 

Michael

 

Just to update this topic I have now taken the £ sign out of the title and the page opens as it should, so obviously the problem is the £ sign. So is there a way to have the £ sign displayed correctly in the title?

 

Thanks

 

Michael

Link to comment
Share on other sites

Just to update this topic I have now taken the £ sign out of the title and the page opens as it should, so obviously the problem is the £ sign. So is there a way to have the £ sign displayed correctly in the title?

 

Thanks

 

Michael

 

Hello,

 

Try to replace the

catalog/includes/classes/seo.class.php

with one from the latest packages with autoinstaller

 

 

NOTE the seo.class.php is different in the version 2.7 for manual installation and in one of the latest packages with autoinstaller

 

 

Stanislav

Link to comment
Share on other sites

Hello,

 

Try to replace the

catalog/includes/classes/seo.class.php

with one from the latest packages with autoinstaller

 

 

NOTE the seo.class.php is different in the version 2.7 for manual installation and in one of the latest packages with autoinstaller

 

 

Stanislav

 

Thanks Stanislav for the advice. I have downloaded the very last autoinstaller file and just copied over the seo.class.php from the files folder and it appears to have solved the problem.

 

Thanks again for your help.

 

Michael

Edited by offie
Link to comment
Share on other sites

Hello,

 

Can you show the site?

 

Have you found the difference in the html page source that cause this width change?

 

 

Stanislav

 

The site is www.e-zegarek.com (you can see the effect on the right side).

As to your question I am afraid I don't understand it (am a newbie :'( )

 

BTW. I used the 2.1e original updated contrib (7 Dec 2008).

Edited by solarplexus
Link to comment
Share on other sites

The site is www.e-zegarek.com (you can see the effect on the right side).

As to your question I am afraid I don't understand it (am a newbie :'( )

 

BTW. I used the 2.1e original updated contrib (7 Dec 2008).

 

Hello,

 

Can you attach two screenshots so I can see the difference?

 

I mean the html source of the page in my previous post. When you open any page with your web browser you can view the Page Source of the page.

 

I need two sources to compare and find the difference

 

 

Stanislav

Link to comment
Share on other sites

Hi,

 

I installed successfuly last Ultimate SEO 2-2.2d-2 by Jack mcs. Since it was not working for Buy Now button I applied change from BUY NOW Button Fix by amchstudios dated 1 Apr 2009 and now everything is working (cyrillic character conversion too, UTF-8 shop), together and compatible with Header Tags 3.1.5 and STS 4.5.8.

My question is, is it possible and what code to change to have only clean product and category names in URL without ending -c-28 or -p-29 (ex. mysite.com/some_category.html instead of mysite.com/some_category-c-29.html) ?

 

Thanks,

Miodrag

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