Stop sub domain redirection to main domain
Apr 12, 2016 7:45 pm by xperthere
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
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
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
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 how | Oct 15, 2018 8:30 am | Replies: 1 | Post by: LesterCrawford |
| How to stop my subscription for gtranslate paidment option | Jun 17, 2018 7:24 am | Replies: 1 | Post by: hored |
| Go back to original language after redirection | Sep 19, 2017 6:03 pm | Replies: 1 | Post by: spheresocial |
| Add SSL to my domain | Aug 24, 2017 1:32 am | Replies: 1 | Post by: dsrougi |
| Translate to an other domain | Apr 18, 2017 5:59 am | Replies: 1 | Post by: Pcg |