Problem with redirect with wildcard

CLOSED

Problem with redirect with wildcard

Postby Marc_J » Thu Feb 17, 2011 1:42 am

Hi,

I have a bunch of files in the web root: -

/abc-674.php
/def-643.php
etc.etc.

I want to show these when the following URL's are requested: -

http://domain.com/products/abc-674/this_can_be_anything.php
http://domain.com/products/abc-674/or_this.php

both redirect to /abc-674.php without changing the URL, and

http://domain.com/products/def-643/this_can_be_anything.php
http://domain.com/products/def-643/or_this.php

both redirect to /def-643.php without changing the URL.

So, basically, the bit between products/ and the next / is the target, while anything after that can effectively be ignored.

Any help greatly appreciated!
Marc_J
 
Posts: 25
Joined: Tue Aug 15, 2006 9:00 am

Return to New Threads/Problems

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron