This is a discussion on Need help with mod_rewrite within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, I have a problem with mod_rewrite. I want to rewrite an url but I cant get it to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
I have a problem with mod_rewrite. I want to rewrite an url but I cant get it to work. I want to rewrite http://foo.bar.com to http://foor.bar.com/?group=guest. I tried: RewriteRule ^/(.*) http://foo.bar.com/?group=guest But this isnt working. Can anyone give me a hint? Thanks in advance, Dirk |
|
|||
|
Can you try this
RewriteRule ^/.* http://foo.bar.com/?group=guest I think that (*) are used for replacements in right side (with $1 for the first pair of bracket for example) "Dirk Sachse" <sachse@sunflowers.de> a écrit dans le message de news: bntjf8$15i60o$1@ID-82523.news.uni-berlin.de... > Hi all, > > I have a problem with mod_rewrite. I want to rewrite an url but I cant get > it to work. > > I want to rewrite http://foo.bar.com to http://foor.bar.com/?group=guest. > > I tried: > > RewriteRule ^/(.*) http://foo.bar.com/?group=guest > > But this isnt working. > > Can anyone give me a hint? > > Thanks in advance, > > Dirk |