Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

putting a '-' in sef urls


tec

Recommended Posts

Hi there, my client has sef urls, as it is, his category pages show like this

 

If you click on the 'generators>skip portable generators' category you get

 

sitename.com:generatorskiporportablegenerators-c-39_80.html

 

notice how the category name runs as one word?

 

he would like it to read

sitename.com/generators-kipor-portable-generators-c-39_80.html

 

so that a '-' represents a space.

 

I was told that i can change this in the htaccess file, but i am not sure how, this is what i have in there now

 

Options +FollowSymLinks

<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
deny from all
</FilesMatch>

ErrorDocument 404 /errorpage.php

RewriteEngine On 
RewriteBase /

RewriteCond %{HTTP_HOST} ^josephabrams\.com [NC]
RewriteRule (.*) http://www.josephabrams.com/$1 [L,R=301]


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 ^(.*)-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}

 

thoughts?

-

Link to comment
Share on other sites

Download and install the Ultimate SEO URLs v2.1d from Chemo as it does that and a lot more. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Download and install the Ultimate SEO URLs v2.1d from Chemo as it does that and a lot more. ;)

 

 

hey there, i took a look and apparently it is already installed, i downloaded the latest mod and double checked the files and i can see they are all there, one file was not upload, the seo file that gos in the includes/classes, but even after i uploaded it, i still dont get a - in my url

Link to comment
Share on other sites

Clear your URL cache.

 

Are you sure that you are using the v2.1d version?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Clear your URL cache.

 

Are you sure that you are using the v2.1d version?

 

 

ok, I have gone through the files and yes, it looks like 2.1d, i downloaded it and double checked all of the files.

Do you mean clear my cache in my browser? i tried but it did not do anything

Link to comment
Share on other sites

Admin > Ultimate SEO URLs > Clear cache.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...