Jump to content

Subdomains and .htaccess


Recommended Posts

I recently spotted a tutorial here: http://www.msfn.org/board/index.php?showtopic=19527

A great tutorial on the subject of subdomains.

I tried using the suggestion with an htaccess file that reads:

RewriteEngine On

RewriteCond %{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

  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...