Forum Moderators: mack
I'm trying to set up an .htaccess file to direct all requests to the root of the server to a new domain [domainny.com...]
The following works for redirecting the IP when I type it in but not the request for [domain-ny.com...]
#############################################
RewriteEngine on
RewriteRule /* [domainny.com...]
#############################################
Any thoughts?
<VirtualHost *>
ServerName www.example.com
DocumentRoot /path/to/www/html/
</VirtualHost>
If are not sure what you are doing with httpd.conf I recomend backing it up before you make any changes. It's a nightmare when you make a change then apache doesnt function correctly.
After you add the virtual host entry restart apache.
Mack.