Virtual Domain Forwading using PHP
Posted: Wed Nov 08, 2006 2:27 am
Hi Friends,
This time i need a help from u all..Let me tell u my need...
I have a site name http://www.example.com which allows several users to register and post there files. When the user registers, for ex: user "abc" registers, i want to give him an url "www.example.com/abc", so that he can view his home page
Now, when a user enter this url i want him to be redirected to
www.example.com/users/profiles.php?mem=abc
I know that if we go with .htaccess i can redirect using "RewriteRule". But i want to accomplish this using PHP itself so that my program will work for any servers and not restricted to APACHE.
hope to find a reply soon,
Thanks,
PB
This time i need a help from u all..Let me tell u my need...
I have a site name http://www.example.com which allows several users to register and post there files. When the user registers, for ex: user "abc" registers, i want to give him an url "www.example.com/abc", so that he can view his home page
Now, when a user enter this url i want him to be redirected to
www.example.com/users/profiles.php?mem=abc
I know that if we go with .htaccess i can redirect using "RewriteRule". But i want to accomplish this using PHP itself so that my program will work for any servers and not restricted to APACHE.
hope to find a reply soon,
Thanks,
PB