How long for 301 redirect to take effect?

Mujkanovic

Well-known member
Collaborate
Registered
Joined
Apr 24, 2016
Messages
424
Points
18
I am adding 301 redirect to htaccess file but I don't see it runs. My question is, how long for 301 redirect to take effect? Does this affect by web caching plugin that I am using on my website?
 

hostens

Well-known member
Hosting Provider
Registered
Joined
Jan 18, 2017
Messages
215
Points
28
You should clear the cache after each update for your .htaccess file. Or you can try of using private/incognito browser mode to check for how the website is being loaded without cache.

In general, the rules provided in .htaccess file should take effect immediately. If you make adjustments on .htaccess and there are no effect on your website even after clearing cache, you should check your webserver's configuration, since there can be multiple .htaccess files or that it's usage can be disabled.
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,498
Points
63
Agree with @hostens and I think your redirection codes are wrong thus it didn't take effects. I faced same problem and If possible, you should use PHP redirection code, it will work better.

If your site is using Wordpress, I would recommend Redirection plygin by John Godley, it works as a charm.
 

Laurence Flynn

Well-known member
Registered
Joined
Dec 31, 2016
Messages
92
Points
8
Sounds like a caching issue. 301 redirects work the moment you hit save.
 

hostnamaste

Well-known member
Hosting Provider
Registered
Joined
Jun 26, 2018
Messages
185
Points
28
It should be instant. You should clear the cache, delete the browsers cookies and also flush DNS.
 
Older Threads
Newer Threads
Latest Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top