• Perhaps this is not the right place to put this question, so sorry for that. I posted the question on AWS forum as well as on Stack Overflow. But unfortunately I did not get any reply!

    I have put my WordPress installation inside /var/www/html/cooking folder under a Amazon Linux instance. Homepage of the site is http://54.165.84.82 , which runs ok, but http://54.165.84.82/cooking/hello-world/ gives me 404.

    I have modified /etc/httpd/conf/httpd.conf. It now looks like:

    ServerRoot "/etc/httpd/"
    Listen 80
    Include conf.modules.d/*.conf
    User apache
    Group apache
    ServerAdmin root@localhost
    <Directory>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    DocumentRoot "/var/www/html"
    <Directory "/var/www">
        AllowOverride All
        Require all granted
    </Directory>
    <Directory "/var/www/html/cooking">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    

    .htaccess file inside /var/www/html/cooking:

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    

    Please help!

    • This topic was modified 8 years, 9 months ago by Jan Dembowski.
    • This topic was modified 8 years, 9 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress. Please do not use Developing with WordPress for support topics like this

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘AWS Amazon Linux: pretty permalinks not working 404 error’ is closed to new replies.