You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Suhaib Ahmad <su...@gmail.com> on 2007/08/18 13:42:34 UTC

[users@httpd] url rewrite on userIds

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 <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


Re: [users@httpd] url rewrite on userIds

Posted by Suhaib Ahmad <su...@gmail.com>.
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 <no...@gmail.com> wrote:
> On 18/08/07, Suhaib Ahmad <su...@gmail.com> 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 <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


Re: [users@httpd] url rewrite on userIds

Posted by Vincent Bray <no...@gmail.com>.
On 18/08/07, Suhaib Ahmad <su...@gmail.com> 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 <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


Re: [users@httpd] url rewrite on userIds

Posted by Morgan Gangwere <0....@gmail.com>.
On Sun, 2007-08-19 at 01:04 +0700, Vincent Bray wrote:
> On 18/08/07, Suhaib Ahmad <su...@MANUMANAH.com> 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:

<code beeatch> 

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]);


</code Beeatch>
-- 
Morgan Gangwere <0....@gmail.com>


---------------------------------------------------------------------
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


Re: [users@httpd] url rewrite on userIds

Posted by Vincent Bray <no...@gmail.com>.
On 18/08/07, Suhaib Ahmad <su...@gmail.com> 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 <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