url rewrite on userIds
am 18.08.2007 13:42:34 von Suhaib Ahmad
Hello,
For my website i want to implement url rewriting. I'm unable to create
a RewriteRule
which when given url: http://myUser.domain.com/
convert it to http://www.domain.com/action?id=myUser
Thanks,
Suhaib.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: url rewrite on userIds
am 18.08.2007 20:01:00 von noodlet
On 18/08/07, Suhaib Ahmad wrote:
> Hello,
>
> For my website i want to implement url rewriting. I'm unable to create
> a RewriteRule
>
> which when given url: http://myUser.domain.com/
> convert it to http://www.domain.com/action?id=myUser
What is the purpose of altering the hostname? Are you proxying the
resulting URL, or perhaps confusing mod_rewrite's capabilities?
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: url rewrite on userIds
am 18.08.2007 20:04:01 von noodlet
On 18/08/07, Suhaib Ahmad wrote:
> Hello,
>
> For my website i want to implement url rewriting. I'm unable to create
> a RewriteRule
>
> which when given url: http://myUser.domain.com/
> convert it to http://www.domain.com/action?id=myUser
What is the purpose of altering the hostname? Are you proxying the
resulting URL, or perhaps confusing mod_rewrite's capabilities?
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: url rewrite on userIds
am 18.08.2007 22:54:40 von Morgan Gangwere
On Sun, 2007-08-19 at 01:04 +0700, Vincent Bray wrote:
> On 18/08/07, Suhaib Ahmad wrote:
> > Hello,
> >
> > For my website i want to implement url rewriting. I'm unable to create
> > a RewriteRule
> >
> > which when given url: http://myUser.domain.com/
> > convert it to http://www.domain.com/action?id=myUser
>
> What is the purpose of altering the hostname? Are you proxying the
> resulting URL, or perhaps confusing mod_rewrite's capabilities?
>
Eh, wouldnt it just be better to use a vHost that redirects to the
proper place? it wouldnt be hard to write a script that does basically
this:
echo "This page Has been mobbed. please wait while we transfer you..."
header("location", "http://www.mydomain.com/action?id=" . [code Here to
split out the user id]);
--
Morgan Gangwere <0.fractalus@gmail.com>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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
Re: url rewrite on userIds
am 19.08.2007 07:07:25 von Suhaib Ahmad
Yes I want to hide the end URL from the user...so that user can only see
myUser.domain.com....
which for server rewritten into
domain.com/action?id=myUser
On 8/18/07, Vincent Bray wrote:
> On 18/08/07, Suhaib Ahmad wrote:
> > Hello,
> >
> > For my website i want to implement url rewriting. I'm unable to create
> > a RewriteRule
> >
> > which when given url: http://myUser.domain.com/
> > convert it to http://www.domain.com/action?id=myUser
>
> What is the purpose of altering the hostname? Are you proxying the
> resulting URL, or perhaps confusing mod_rewrite's capabilities?
>
> --
> noodl
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See 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 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