| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|mod_rewrite, convert URI to a GET-String|
I´m 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 ...
I´m 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!
It took some serious searching to find this one since RewriteRules are extremely shy creatures indeed. ;)
RewriteRule ^(.*) xyz.php?abc=$1 [L,QSA]
RewriteRule ^(.*) [domain.com...] [R,L,QSA]
Welcome to WebmasterWorld [webmasterworld.com] st2xo
Nooo, they are not shy to be found, they are living to thousands, but, shame on me, I´ll lose my head if I see regex more complex than to extract some chars :)
Thank you, the internal regex works fine!
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved