Forum Archive - Stop sub domain redirection to main domain

Stop sub domain redirection to main domain
Apr 12, 2016 7:45 pm by xperthere
Hello I have following code in my .htaccess file RewriteRule ^sitemap.xml$ sitemap.php [L] RewriteRule ^sitemap-(.*?)-(.*?)\.xml$ sitemap.php?type=$1&page=$2 [L] Now it's working fine when i open the site like http://domain.com/sitemap.xml it auto run the sitemap.php file. But when i try to open same site with http://[subdomain].domain.com/sitemap.xml it automatically redirecting me to my main domain. How can i stop this redirection? Thanks in advance Shahbaz
Re: Stop sub domain redirection to main domain
Apr 12, 2016 7:49 pm by Edvard
Hi, We do not translate xml sitemaps and other XML documents, so we redirect it to your original file. Thanks!
Re: Stop sub domain redirection to main domain
Sep 15, 2017 7:48 am by zenglihunter
I have the same question.Is there any way to solve it now?
Re: Stop sub domain redirection to main domain
Sep 17, 2017 12:19 am by Yana
Hi, We do not translate xml files. You can use our live chat support if you have more questions.

SIMILAR TOPICS

Go back to original language after redirection? dnt knw howOct 15, 2018 8:30 amReplies: 1Post by: LesterCrawford
How to stop my subscription for gtranslate paidment optionJun 17, 2018 7:24 amReplies: 1Post by: hored
Go back to original language after redirectionSep 19, 2017 6:03 pmReplies: 1Post by: spheresocial
Add SSL to my domainAug 24, 2017 1:32 amReplies: 1Post by: dsrougi
Translate to an other domainApr 18, 2017 5:59 amReplies: 1Post by: Pcg

Try GTranslate with a free 15 day trial