homepage Welcome to WebmasterWorld Guest from 54.237.98.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Want to Point Domain Name to Subdirectory
Can this be done with .htaccess?
ccDan

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3678294 posted 5:51 am on Jun 19, 2008 (gmt 0)

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

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



 
Msg#: 3678294 posted 9:55 pm on Jun 19, 2008 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved