Link to home
Start Free TrialLog in
Avatar of chezbrgrs
chezbrgrsFlag for United States of America

asked on

Redirecting URL to subdomain

Hello Experts -

I have an Apache web server setup and need help with .htaccess (I think).  I can access a particular page by going to...

     http://www.domainname.com/subdir/blog

I want to be able to access it from...

     http://blog.domainname.com

...and I don't want the directory structure in the URL to revert back.

The subdomain blog has been created and points to the correct IP address.  How can I do this with .htaccess?

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Shalom Carmel
Shalom Carmel
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chezbrgrs

ASKER

This worked but I took your advice and did a  in the httpd.conf file.  Much better solution.

Thanks for your help.