Welcome to WebmasterWorld Guest from 54.196.233.239

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Want to Point Domain Name to Subdirectory

Can this be done with .htaccess?

     

ccDan

5:51 am on Jun 19, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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?

jdMorgan

9:55 pm on Jun 19, 2008 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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. :)

Jim

 

Featured Threads

Hot Threads This Week

Hot Threads This Month