Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

hi all

 

I have modyfid my htacsess file with the following rewrite code

 

 

#-----------------------------------------

# easy-SEO-urls rewrite settings

#-----------------------------------------

RewriteEngine on

RewriteBase /

RewriteRule [^/]+-c([0-9]+)/[^/]+-s([0-9]+)/[^/]+-p([0-9]+)/ /product_info.php?cPath=$1_$2&products_id=$3 [NC,L,QSA]

RewriteRule [^/]+-c([0-9]+)/[^/]+-p([0-9]+)/ /product_info.php?cPath=$1&products_id=$2 [NC,L,QSA]

RewriteRule [^/]+-c([0-9]+)/[^/]+-s([0-9]+)/ /index.php?cPath=$1_$2 [NC,L,QSA]

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

RewriteRule [^/]+-c([0-9]+)/$ /index.php?cPath=$1 [NC,L,QSA]

 

 

 

------------------

my problem is that urls that are clicked are missing a "/" on the end to make look like a folder

EG:

 

current click url=

http://**domain**/dvd-stuff-c84

RETURNS WITH ERROR

 

 

 

need to end url with a final "/" slash to look like this below

http://**domain/dvd-stuff-c84/

 

curently i can put manualy with my browser and click (go) then it works

but to serve customers is not working automaticly.

 

i am hoping that i can edit the .httaccess file that has the above ReWrite code to fix the problem,

 

can you fellows spot something that i can do with the code to include the last "/" slash automaticly for links clicked on the site?

 

 

Pretty Please is the keyword here!

Posted

In short,

 

I need some kind of fix for my rewrite code, so that a "/" slash is added to the end of click-links that is clicked

 

many thanks, `to any one who can help!!

 

 

 

 

 

 

.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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