Delete cache not working for www-less URL
-
I have this setup at my https://www.example.com blog:
DNS :
www.example.com
andexample.com
both has the same A-record
Home url:https://www.example.com
Front page: Blog
Other sgnificant plugins: WordPress SEOOne day I discovered that https://example.com/ showed a completely outdated front page. https://www.example.com/ showes the correct list of recent posts.
Usually,
https://example.com/
is redirected (canoncical) tohttps://www.example.com/
but not this time.Tried to delete the cache from within WP Super Cache, with no luck.
Through FTP I found a folder
/wp-content/cache/supercache/examle.com
and deleted it. That worked.It seem someone, som day, managed to get the front page served form the
https://example.com/
URL because redirection was not happening or ignored.What is the best way to avoid this problem? Is using an external redirect from
https://example.com/
tohttps://www.example.com/
so this cache poisioning will be impossible, or are there other ways to do it on the site itself, through WP Super Cache or may be in.htaccess
?
- The topic ‘Delete cache not working for www-less URL’ is closed to new replies.