• Resolved Jordan Kinne

    (@jmkinne)


    Hey guys, running WordPress on an AWS EC2 server. Had to install SSL, which required rolling Apache up from 2.2 to 2.4. That carried PHP up to 5.5, so I installed MySQLi. Got that all running after a day of troubleshooting.

    My homepage loads, but none of my other pages do. I can log into my admin, see/edit the pages, but they don’t show up at any of their links. My domain is: usethewall.com

    I’ve done a few modifications to my httpd.conf file:

    1) Changed AllowOverride <em>to</em> <strong>All</strong>

    2) Added:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    After restarting httpd, I get a “Syntax error on line 191 of /etc/httpd/conf/httpd.conf:
    RewriteBase: only valid in per-directory config files” error.

    3) Tried:

    <Directory /var/www/html/usethewall/>
    Options FollowSymLinks
    AllowOverride All
    </Directory>

    Nothing seems to be bringing my alternate links back. Welcoming all suggestions and help!

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    move that first block of code from httpd.conf to .htaccess in /var/www/html/usethewall or put in inside the <Directory> block.

    Thread Starter Jordan Kinne

    (@jmkinne)

    Thank you! As I had understood it, on AWS’s linux, all of the configs should be done in httpd.conf so I didn’t have an .htaccess file in the first place.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Apache 2.2 -> 2.4: Permalinks broken.’ is closed to new replies.