htaccess (301 redirects) Cache
Sep 19, 2016 9:36 am by belgor
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
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
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
Sep 20, 2016 2:27 pm by Yana
You are welcome!
SIMILAR TOPICS
GTranslated Post Redirects To Google Homepage | Dec 31, 2018 12:36 pm | Replies: 1 | Post by: theseoulofkorea |
2 questions: w3 total cache and payment | Aug 19, 2018 10:38 am | Replies: 2 | Post by: Wind777 |
Potential threat identified in .htaccess | Mar 1, 2017 7:30 pm | Replies: 3 | Post by: Hannah |
Redirect to subdomain in .htaccess using Accept-language | Dec 27, 2016 5:44 am | Replies: 5 | Post by: freebouba |
GTranslate conflict with W3 total cache or vica versa | Oct 30, 2016 11:58 am | Replies: 3 | Post by: Rick Matters |