Can anyone help with following please:
I have *wildcard DNS enabled & access to httpd.conf
I wish to do the following using RewriteMap with .txt file named s2t.txt
on a per virtual host basis: to take a "subdomain" portion of a domain(sub.domain.com)
or(www.sub.domain.com)and 301 redirect it to an external site/domain or if it does
not exist in the s2t.txt file "goto local" index.php. Must be able to use www. or no www.
and redirect with 301 status.
I would like for the s2t.txt file to be in the format:
subdomain target
a few example lines being:
mysub1 http://mysite1.com
mysub2 http://mysite2.com
mysub3 http://mysite3.com
etc
etc
I have spent days over this and got nowhere and I am getting more & more confused the more
I read and so finally I am requesting the easy way out if anyone would care to step in and help.
I am not sure if when the .conf part is done that I have to have .htaccess also? or if apache
has to be stopped & restarted every time a new entry is placed in the txt file.
Hope someone out there can help.
Thanks to anyone in advance.