4evrblu Posted May 19, 2006 Share Posted May 19, 2006 I recently spotted a tutorial here: http://www.msfn.org/board/index.php?showtopic=19527A great tutorial on the subject of subdomains.I tried using the suggestion with an htaccess file that reads:RewriteEngine OnRewriteCond %{HTTP_HOST} ^cfhealth.cfcure.com$ [OR]RewriteCond %{HTTP_HOST} ^www.cfhealth.cfcure.com/MT/$RewriteRule ^(.*)$ http://www.cfcure.com/MT/cfhealth/ [L,R=301]basically I want cfhealth.cfcure.com to be redirected to http://www.cfcure.com/MT/cfhealth/I uploaded the .htaccess file to my www directory, and I tried the subdomain, but it failed to open, saying :: Safari can’t open the page “http://cfhealth.cfcure.com/” because it can’t find the server “cfhealth.cfcure.com”.What did I do wrong? Link to comment Share on other sites More sharing options...
gamehead200 Posted May 19, 2006 Share Posted May 19, 2006 Your server must have wildcards enabled in order for this to work.For example, on my home server, I am running virtual hosts, so therefore I have the following:ServerAlias *.mydomain.comServerName mydomain.com* is a wildcard. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now