Stop sub domain redirection to main domain

Popular automatic website translation tool

Stop sub domain redirection to main domain

Postby xperthere » Tue Apr 12, 2016 11:45 pm

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
xperthere
 
Posts: 1
Joined: Tue Apr 12, 2016 11:41 pm

Re: Stop sub domain redirection to main domain

Postby Edvard » Tue Apr 12, 2016 11:49 pm

Hi,

We do not translate xml sitemaps and other XML documents, so we redirect it to your original file.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4348
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Stop sub domain redirection to main domain

Postby zenglihunter » Fri Sep 15, 2017 11:48 am

I have the same question.Is there any way to solve it now?
zenglihunter
 
Posts: 5
Joined: Fri Sep 08, 2017 7:17 am

Re: Stop sub domain redirection to main domain

Postby Yana » Sun Sep 17, 2017 4:19 am

Hi,

We do not translate xml files. You can use our live chat support if you have more questions.
Regards,

Yana Ghahramanyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Yana
 
Posts: 4329
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux