Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

mod_rewrite, convert URI to a GET-String

2:38 pm on Sep 17, 2002 (gmt 0)

New User

10+ Year Member

joined:Sept 17, 2002
votes: 0


Im searching for a mod_rewirte rule to:

[domain.com...] -> [domain.com...]

Because I need these GET-string-parameters at any time, I cant use the Alias directive in the httpd.conf.

Of course there will be no directory named "foo" ... also there is no trailing slash problem at this server ...

Im not very familiar with regex and/or mod_rewrite, the apache docs and google results had not helped me, so I like to ask here ....

could anybody help? Thanks a lot!


4:08 pm on Sept 17, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
votes: 0

It took some serious searching to find this one since RewriteRules are extremely shy creatures indeed. ;)

internal rewrite
RewriteEngine On
RewriteRule ^(.*) xyz.php?abc=$1 [L,QSA]

external redirect
RewriteEngine On
RewriteRule ^(.*) [domain.com...] [R,L,QSA]

5:00 pm on Sept 17, 2002 (gmt 0)


WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
votes: 0

Welcome to WebmasterWorld [webmasterworld.com] st2xo
6:31 pm on Sept 17, 2002 (gmt 0)

New User

10+ Year Member

joined:Sept 17, 2002
votes: 0

Hi Andy,

Nooo, they are not shy to be found, they are living to thousands, but, shame on me, Ill lose my head if I see regex more complex than to extract some chars :)

Thank you, the internal regex works fine!



Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members