how to set permalinks back to Post name and avoid 404 Not Found error?
-
Hi all!
How do I avoid “404 Not Found” error after having set my permalinks back to “Post name” after having temporarily set them to Plain/Default?
How it was, was I didn’t touch permalinks since the way a fresh self-hosted WP v.4.6.1 install.
What I did was set the permalinks to “Plain” (a.k.a. ugly) and clicked save.
Now I want permalinks to “Post name” so I chose that and clicked save.
Now the symptom happens. The symptom is as described above, whenever I browse to a Page on the website, the url looks pretty (uses the post name (slug)), however my browser is showing a 404 Not Found page.
Running on Apache on localhost. (Ubuntu 12 with LAMP stack installed via tasksel command)
What I’ve done:
I googled and some people said to make sure .htaccess is writeable. I did so, and made .htaccess 777 temporarily. Then I toggled the permalinks to Plain again, then back to “Post name”. This test showed me that WordPress did write fine to .htaccess because the .htaccess file contents changed when I toggled the permalinks.After toggling permalinks, I opened a fresh In Private browser window(, to make sure the browser cache wasn’t a facton). Symptom persisted.
Thanks for reading — let me know what other info. I can provide or what I can try next! What’s a good next step?
- The topic ‘how to set permalinks back to Post name and avoid 404 Not Found error?’ is closed to new replies.