- This topic has 0 replies, 1 voice, and was last updated 6 years, 11 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Tech › Web Development › WP Post name permalinks broken on Amazon Linux
Yes!
You’ve tried to enable Post names permalinks and now all the links on your WordPress site are broken – nothing works.
You already checked and made sure that your root file .htaccess is updating, but nevertheless your new Post name links all not resolving.
OK. We fixed that problem recently, and recording here the solution – You need to allow override for your WP directory in Apache config file.
You need to edit your /etc/httpd/conf/httpd.conf file and add these 3 lines:
<directory "/var/www//html/YourWPDirectory">
<strong>AllowOverride All</strong>
</directory>
Then, restart the httpd server and enjoy!
Explanation: When AllowOverride is set to a default value of None, Apache completely ignores .htaccess files. In this case, the server will not even attempt to read .htaccess files in the file system.
[last updated 2017-12-07 TH]
© 2017 DomainWebCenter.com. All Rights Reserved. | Disclaimer | Contact the Editor