Home Forums Tech Web Development WP Post name permalinks broken on Amazon Linux

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #5183
    Udar Gromov
    Keymaster

    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]

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.