httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morgan Gangwere <0.fracta...@gmail.com>
Subject Re: [users@httpd] url rewrite on userIds
Date Sat, 18 Aug 2007 20:54:40 GMT
On Sun, 2007-08-19 at 01:04 +0700, Vincent Bray wrote:
> On 18/08/07, Suhaib Ahmad <suhaib.bms@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.fractalus@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


Mime
View raw message