Jump to content

Trimming the '/'?


sphinx

Recommended Posts

Hello.

 

I want to use .htaccess to redirect to eBay items

 

When I use test.co.uk/12345 as an example

 

It is outputting:

 

test.co.uk/test=/12345/go

 

I need it to output:

 

test.co.uk/test=12345/go

 

Thank you

RewriteEngine on
RewriteCond %{HTTP_HOST} =test.co.uk [OR]
RewriteCond %{HTTP_HOST} =www.test.co.uk
RewriteCond %{REQUEST_URI} !^/?$ [NC]
RewriteRule ^ http://www.ebay.co.uk/test=%{REQUEST_URI}/go [R=301,L]
Link to comment
https://forums.phpfreaks.com/topic/280075-trimming-the/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.