Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite for request uri and query string?

         

kleinguy

10:10 pm on Feb 15, 2008 (gmt 0)

10+ Year Member



I would be glad for some help with the following redirection.

All URLs like

http://www.example.com/w/index.php?title=TEXT&oldid=NUMBER

should be forward to

http://www.example.com/

(TEXT can contain characters from the alphabet and numbers, NUMBER is a number such as 1234.)

I have tried to create an according redirection with mod_rewrite and a regular expression, however, I have miserably failed so far … :(

Armin

Marcia

10:36 pm on Feb 15, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check this thread out for a tip on dealing with query strings

[webmasterworld.com...]

kleinguy

10:54 pm on Feb 15, 2008 (gmt 0)

10+ Year Member



Thank you, Marcia, I'll have a look at the linked thread.

Armin

kleinguy

11:04 pm on Feb 15, 2008 (gmt 0)

10+ Year Member



Problem solved. Thanks a lot for providing just the perfect thread link! :)

g1smd

1:17 am on Feb 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Folding a large number of old ULs to the root of a domain raises a red flag to me.

I much prefer to re-map by topic.

kleinguy

2:35 am on Feb 16, 2008 (gmt 0)

10+ Year Member



Don't worry, the destination has only the purpose to serve as an example for my question.

Armin

phranque

4:34 am on Feb 16, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], Armin!