htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Domain to subdomain and another sub domain with no redirect?
PostPosted: 03 Sep 2008 19:01 
Offline

Joined: 03 Sep 2008 18:55
Posts: 1
Hi all

As a complete newbie to .htaccess files i need some help,

I have a domain that i need to redirect to a subdomain on another ip address, that i can do no probs... BUT!!

I need a sub domain of the domain to stay as the subdomain ie. (thats sounds terribly complicated to me and i know what i mean!!) heres an example:-

http: // www. mydomain. com goes to http: // shop. mydomain. com (on a different ip address, this subdomain is setup and working) but

http: // blog. mydomain. com to got to the subfolder of http: // mydomain. com (this has a wordpress blog in it).

Hope that makes sense, i am pretty sure it needs some conditional stuff but i cant get it to work at all!!

Thanks in advance to all u guru's

Kev


Top
 Profile  
 
 Post subject: Re: Domain to subdomain and another sub domain with no redirect?
PostPosted: 12 Sep 2008 14:08 
Offline

Joined: 30 Oct 2006 19:55
Posts: 99
Whats your current .htaccess files and folder structure?

Code:
/user/websites/domain.com/   <= DOC_ROOT for domain.com and www.domain.com
/user/websites/domain.com/blog/  <= DOC_ROOT for blog.domain.com
/user/websites/domain.com/shop/  <= DOC_ROOT for shop.domain.com


And are you saying that a request for http://www.domain.com is redirected to shop.domain.com?

We'll need all this info if you want a solution fast.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB