htaccess (301 redirects) Cache

Popular automatic website translation tool

htaccess (301 redirects) Cache

Postby belgor » Mon Sep 19, 2016 1:36 pm

Hello.
Is there some cache of .htaccess file?

I had there some redirects, but after changing content of .htaccess file the language subdomain is still working same way.

Or is there (on your server) cache of 301 redirects and after i change them it stays the same?..

Here is example i want translate
https://www.domain.com
into
https://it.domain.com
And in .htaccess i got only this redirect that can do that...
Code: Select all
# gtranslate config
RewriteCond %{HTTP_HOST} !^it\.domain\.com$ [NC]
RewriteCond %{HTTP_HOST} !^([a-z]{2}|zh-CN|zh-TW)\.domain\.com$ [NC]
# end of gtranslate
RewriteCond %{HTTP_HOST} !^test301\.domain\.com$ [NC]
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]
Last edited by belgor on Mon Sep 19, 2016 11:37 pm, edited 2 times in total.
belgor
 
Posts: 2
Joined: Mon Sep 19, 2016 1:32 pm

Re: htaccess (301 redirects) Cache

Postby Yana » Mon Sep 19, 2016 6:48 pm

Hi,

The issue is related to www redirection. You will need to remove www for our network requests. If you want we can do it on our server. Please let us know.
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: 4459
Joined: Thu Jan 12, 2012 6:21 pm

Re: htaccess (301 redirects) Cache

Postby belgor » Mon Sep 19, 2016 11:35 pm

OH, thank you for help.
So i have changed .htaccess according to documentation
https://gtranslate.io/docs/58-gtranslate-tdn-documentation#disabling_redirect
in to this and its working now:
Code: Select all
# gtranslate config
RewriteCond %{HTTP:X-GT-Lang} ^$
RewriteCond %{HTTP_HOST} !^([a-z]{2}|zh-CN|zh-TW)\.domain\.com$ [NC]
# end of gtranslate
RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]
belgor
 
Posts: 2
Joined: Mon Sep 19, 2016 1:32 pm

Re: htaccess (301 redirects) Cache

Postby Yana » Tue Sep 20, 2016 6:27 pm

You are welcome!
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: 4459
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 0 guests

2GLux
cron

Time : 0.047s | 14 Queries | GZIP : Off