Support » Fixing WordPress » Redirecting index.html to index.php

  • I’ve searched for an answer to this, but nothing seems to work. I just installed WordPress into the main directory of a site. I’ve got everything working fine. I’ve even redirected the old RSS feed successfully, but I cannot get to redirect to

    Going to successfully leads to but gives me the WordPress error page.

    I tried a number of mod_rewrite rules in my htaccess file but none seem to work.

    I tried this based on a mod_rewrite tutorial:

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

    # END WordPress

    The last rewrite in there is working, but the previous to last does not.

    Can anyone help? I’d really appreciate it.


Viewing 1 replies (of 1 total)
  • Whoops, I called for help too soon.

    By leaving the index.html file in place and changing the rewrite to:

    RewriteRule ^index\.html$

    It now works. Interesting.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirecting index.html to index.php’ is closed to new replies.