Forum Archive - htaccess (301 redirects) Cache

htaccess (301 redirects) Cache
Sep 19, 2016 9:36 am by belgor
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... # 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]
Re: htaccess (301 redirects) Cache
Sep 19, 2016 2:48 pm by Yana
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.
Re: htaccess (301 redirects) Cache
Sep 19, 2016 7:35 pm by belgor
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: # 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]
Re: htaccess (301 redirects) Cache
Sep 20, 2016 2:27 pm by Yana
You are welcome!

SIMILAR TOPICS

GTranslated Post Redirects To Google HomepageDec 31, 2018 12:36 pmReplies: 1Post by: theseoulofkorea
2 questions: w3 total cache and paymentAug 19, 2018 10:38 amReplies: 2Post by: Wind777
Potential threat identified in .htaccessMar 1, 2017 7:30 pmReplies: 3Post by: Hannah
Redirect to subdomain in .htaccess using Accept-languageDec 27, 2016 5:44 amReplies: 5Post by: freebouba
GTranslate conflict with W3 total cache or vica versaOct 30, 2016 11:58 amReplies: 3Post by: Rick Matters

Try GTranslate with a free 15 day trial