I have a scripts which runs from: http://mydomain.com/blog/
This script gives a different output for different domains that are registered to my script. However, I have one domain, which for some reason I can't transfer or change the nameservers for. I was hoping I could force this to work from my script using .htaccess but have had no success.
I have setup the following rule for my troublesome domain:
- Code: Select all
RewriteRule ^(.*)$ http://mydomain.com/blog/$1 [NC,P,L]
This works, however. It gives me an output from mydomain.com and not my troublesome domain.
Is there any way using .htaccess that I can forward my domain to run from http://mydomain.com/blog/, but at the same time make my script think it is actually running from my troublesome domain.