Redirect/Subdomain with .htaccess
https://stackoverflow.com/questions/2541912
Question
What I have currently:
- A wildcard DNS record. So that every subdomain points to
www.galop.gr
- A dynamically (php) generated .htaccess file where I append the following code for every subdomain I want working:
RewriteCond %{HTTP_HOST} ^fractalbit.galop.gr$ [OR]
RewriteCond %{HTTP_HOST} ^www.fractalbit.galop.gr$
RewriteRule ^/?$ http://www.galop.gr/index.php?user=1 [R=301]
Everything is working fine, I just want something more if it is possible.
Right now, if someone enters fractalbit.galop.gr
will be redirected to http://www.galop.gr/index.php?user=1
Is it possible to do this BUT keep fractalbit.galop.gr to the address bar of the browser?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow