Homepage throwing 404 error after permalink redirection
-
Hi,
I decided to migrate to a better permalink structure and opted in for /%postname%/ instead of /%postname%.html
Here’s what I did:
1. Changed permalink structure under General-> Permalinks to “Postname”
2. Added following line in .htaccess (at the top even before w3tc settings and default wordpress settings)
RedirectMatch 301 ^/([^/]+).html$ https://www.example.com/$1
3. Flushed the cache.Now, all the individual articles are being redirected properly with no issues at all. However, the homepage is throwing 404 not found error.
I am not sure what am I doing wrong. Also, I am not using any sort of redirection plugin.
Any help will be appreciated.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Homepage throwing 404 error after permalink redirection’ is closed to new replies.