Welcome to WebmasterWorld Guest from 188.8.131.52 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Want to Point Domain Name to Subdirectory Can this be done with .htaccess? ccDan
I have a website with a domain name. I have another domain name that I would like to redirect to a subdirectory of the main domain name, as in:
...] seconddomain.dom would redirect to [ ...] maindomain.dom
I haven't had any luck finding a way to do that in .htaccess. I don't want to have to setup a separate website for seconddomain.dom just to redirect it to the main domain name. It seems like I should be able to do that with .htaccess, but I haven't figured out a way. I searched in Google and didn't come up with anything there.
Can it be done?
You want an internal rewrite, not a redirect.
> I haven't had any luck finding a way to do that...
Try searching WebmasterWorld for your thread title -- We've covered this issue many times, and at least once already this week. :)