Support » Fixing WordPress » Weird Permalink Problem – All pages work except index

  • Resolved adityanag



    When I enable permalinks, the home page doesn’t work, and all I see is the default Apache 2 Test Page.

    However, permalinks are working.. if I type in , it works perfectly. All the pages inside work too.. it’s just the home page that doesn’t work.

    If I disable permalinks, everything works perfectly, so Apache is picking up index.php

    I have checked AllowOverride, and it’s set to All. Follow SymLinks is enabled.

    I don’t know why the permalinks inside the site are working but the home page isn’t.

    Here’s my .htaccess file. Any help much appreciated.

    # 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]
    # END WordPress
Viewing 1 replies (of 1 total)
  • I fixed it. The weirdest fix ever.

    edit /etc/httpd/conf.d/welcome.conf


    <LocationMatch "^/+$">
        Options Indexes
        ErrorDocument 403 /error/noindex.html


    <LocationMatch "^/+$">
        Options -Indexes
        ErrorDocument 403 /error/noindex.html

    Yes. Adding a – before Indexes fixes this. Why? I have no idea. But it works now.

Viewing 1 replies (of 1 total)
  • The topic ‘Weird Permalink Problem – All pages work except index’ is closed to new replies.