How long for 301 redirect to take effect?

Mujkanovic

Well-known member
Joined
Apr 24, 2016
Messages
280
Best answers
1
Ratings
15
Points
18
#1
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
Joined
Jan 18, 2017
Messages
201
Best answers
2
Ratings
80 9
Points
28
#2
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
Joined
Jun 14, 2016
Messages
1,032
Best answers
0
Ratings
100 1
Points
48
#3
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
Joined
Dec 31, 2016
Messages
92
Best answers
0
Ratings
27
Points
8
#4
Sounds like a caching issue. 301 redirects work the moment you hit save.
 
Joined
Jun 26, 2018
Messages
54
Best answers
0
Ratings
37 1
Points
18
#5
It should be instant. You should clear the cache, delete the browsers cookies and also flush DNS.
 

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

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