I have a subdomain set up on my hosting: indiantimes.indianradio.net.au
, that is being pulled from a folder in my /public_html
folder: /public_html/indiantimes.com.au
.
I am trying to write an .htaccess rule that will redirect it to that folder still, but retain the original url the user typed in: indiantimes.indianradio.net.au
.
I have only been able to get the redirect working, i.e. (indiantimes.indianradio.net.au
redirects to indianradio.net.au/indiantimes.com.au/
), but I can't seem to get the redirect working so the url seen by the user, stays at: indiantimes.indianradio.net.au
. The majority of the image urls are broken intil I am able to get the redirect working properly.
The .htaccess rule I was playing around with was:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^indiantimes\.indianradio\.net\.au$ [OR]
RewriteCond %{HTTP_HOST} ^www\.indiantimes\.indianradio\.net\.au$
RewriteRule ^/?$ "http\:\/\/indianradio\.net\.au\/public_html\/indiantimes\.com\.au" [R=301,L]
What am I doing wrong with the redirect? Any help would be much appreciated! Thanks in advance!