So a lot of people would encounter this problem when they try to change the permalink option to look more like this
http://youwebsite.com/month/day/postname or this
http://yourwebsite.com/month/postname or simply
But once changed the settings it suddenly turns out to be Page Not Found.
I have encountered this problem lately either, and this is the ultimate solution for it:
Two things, one is to check your
.htaccess file, and the other is Apache. First,
.htaccess is at your website root folder(something like
/var/www/xxx.com , or simply go to your provider and ask them where it is) and it’s invisible by default. So you need to type
to show the file.
Open the file:
Check has the file changed after you changed the settings at WordPress admin panel, if not, that’s the problem.
OK, so now, let’s head to Apache folder. Because it’s for 2 things you haven’t enabled in Apache.
Because I have installed Apache2.
Not done yet, this enabled your
mod_rewrite module but it’s not enough for a vanilla system.
This is the step to change the
Find the lines, it should look like this:
Change them to
Then, get back to your WordPress admin panel and change the Permalinks settings again.
Here you go, it’s done, check your posts to see if it worked.
For safety reason, you can now go back to
VirtualHost/default file and change them back to
None, because the
AllowOverride allows Apache to recognize the
.htaccess file and if it’s
None, the system would automatically ignore the
.htaccess file, if you are worried for further changes could affect the Apache server, I recommend you change them back to
And your permalink is set!