Redirect Questions
Posted by: Vash
Posted on: 2009-01-19 22:49:00
I have some questions involving htaccess and CNAMES.
Is is possible to have a virtual subdomain with Dreamhost through htaccess? I think it is possible but my htaccess code is just wrong.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com
RewriteCond %{HTTP_HOST} ^sub\.mydomain\.com
RewriteRule .* /directory
Is it possible to create a CNAME for example, old.mydomain.com, that will redirect to www.otherdomain.com. Where the otherdomain.com is not host by Dreamhost? From what I have read this is possible if I add "old" as a CNAME and point it to www.otherdomain.com.