There is a bug in the current Word Press version (4.9.1) that prevents the .htaccess file from being updated properly when you save the permalinks.Evidently this bug existed in 4.9, but it is still a problem! On multiple Word Press sites, when I’ve gone to update the permalink structure, every page returns a 404 not found error.Updating the permalinks is generally the solution to this problem, not the cause!According to my website host, this is the bug report that tracks this particular problem.However, they claim to have fixed it but I’m still seeing the same problem. This means that you can just add that one line in, and be all set.Also note that the proper code is generally the same no matter which permalink structure you select within Word Press.This is because, again, the .htaccess code only allows Word Press to dictate the permalinks.Short for “Hypertext Access,” you can edit the file and with the right commands, you can enable/disable extra functionality and features to protect your site from spammers, hackers and other threats.
So let’s take an in-depth look at how you can manipulate your .htaccess file to boost your security.file is located in the root of your site (or Multisite network).The period in front of the file name means it’s a hidden file and you won’t be able to see it when browsing your files unless you show all hidden files on your computer.In Word Press, the file is used for facilitating pretty permalinks and is automatically created when this option is enabled. file can be a finicky one to work with because a single syntax error could break your entire site.That being said, if you’re prepared, this kind of worse case scenario doesn’t have to spell a death sentence for your site. Backing up your site before you make any changes can act as a fail safe so you can quickly restore your files and be on your way as if nothing ever happened. The absolute least you should do is download a copy of your File Manager after logging in.
If you’re prompted with a pop-up, select the Show Hidden Files checkbox, then click Go.