Re: url rewrite on userIds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2007-08-19 at 01:04 +0700, Vincent Bray wrote:
> On 18/08/07, Suhaib Ahmad <suhaib.bms@xxxxxxxxxxxxx> 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@xxxxxxxxx>


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux