httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Furesz Peter <the_co...@freemail.hu>
Subject Re: [users@httpd] url redirect
Date Tue, 18 Mar 2003 02:16:53 GMT
Yes, thank you, but my problem is that
I never use mod_rewrite, I never use regular expression, my english
is poor and I can't understand thw whole mod_rewrite engine. :(
(sorry, i just get tired)
I have been reading this manual with two dictionary for 6-7 hours,
and I can't understand.
I try this but don't work:

<Virtualhost a.b.c.d>
    RewriteEngine On
    RewriteLog /var/log/rewrite.log
    RewriteRule ^([^/]+).mydomain.com
http://www.mydomain.com/site.htm?user_site=$1
    VirtualDocumentRoot /foo/bar/%2+/%1.1/%1
</Virtualhost>


----- Original Message -----
From: "Benjamin Krueger" <benjamin@seattlefenix.net>
To: <users@httpd.apache.org>
Sent: Tuesday, March 18, 2003 2:05 AM
Subject: Re: [users@httpd] url redirect


> * Furesz Peter (the_coder@freemail.hu) [030317 16:38]:
> > Hi!
> >
> > I would like to make redirection with the following rule.
> > Every http://username.mydomain.com request to
> > http://www.mydomain.com/site.php?user_site=username.mydomain.com
> > But I serving more domains, it is important, that just the mydomain.com
URLs
> > redirect
> > How can I do this?
> > Thank you for your helps,
> > Peter
>
> You can set rewrite rules on a per domain basis. Just put the rules inside
the
> configuration section for the domain in question.
>
> --
> Benjamin Krueger
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message