Home About Feedback Advertise The Lab Sitemap

Your Ad Here
Google Adsense Pepperjam Network Adbrite Text Link Ads Bidvertiser Kontera
More...


.htaccess for specific referring domain?


Your Ad Here
Thanks for reading. I’ve searched for this on these and other forums, but even the creator(?) of apache says that .htaccess is more voodoo than science, and I don’t know wtf I’m doing with them.

I have a domain name that is already registered. Let’s call it myDomain.com for all intents and purposes. This domain runs Windows, and I can’t change that, so I set up sub1.myDomain.com as a Linux server on the same host. This is now a separate RedHat system, and on this system I am running a webcart, ZenCart to be specific.

I also have another application running from the /htdocs/support/ folder on the sub1. subdomain.

Then, I created a pointer (again, on the same host) to go from sub2.myDomain.com to go to sub1.myDomain.com.

This all works.

Now, I would like to have an .htaccess rule, at the root of the sub1. htdocs directory, that takes those users that are forwarded from sub2.myDomain.com to sub1.myDomain.com and take them to sub1.myDomain.com/support/

The reason I cannot put an .htaccess file at the root of myDomain.com is that it is a Windows server, just to reiterate.

thanks for reading, and thanks in advance as well,

-Tim


Related Entries:
Addon Domain issue, http:// vs www.
Additional Nameservers
How do I setup hosting on one WHM server and send/receive mail on a second WHM server
Document root & cPanel
okay i got a nameserver, what to do next?
Rapid Site Deployment (database driven DNS + Apache config)

Leave a Reply