Announcement

Collapse
No announcement yet.

WordPress index.php page suppression

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    WordPress index.php page suppression

    Is there a way to have our regular index.html page rescueandawareness.org render while at the same time allowing us to make edits to our wordpress (WP) version of the site.

    WP uses index.php which is higher in the hierarchy than index.html but we want the information on index.html to be served until we have index.php ready. I tried temporarily renaming index.php but that doesn't work.

    Thanks,

    Korey
    Korey McWilliams
    Project Director
    _____________________________
    korey usbones dot com
    http://usbones.com

    #2
    Re: WordPress index.php page suppression

    You can adjust the order via .htaccess:

    DirectoryIndex index.html index.php
    David Hubbard
    CIO
    Miva
    [email protected]
    http://www.miva.com

    Comment


      #3
      Re: WordPress index.php page suppression

      Thanks David but I have one more, hopefully, question. Here's the code from .htaccess and I'm not sure where to put what you've provided:

      # 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
      Korey McWilliams
      Project Director
      _____________________________
      korey usbones dot com
      http://usbones.com

      Comment


        #4
        Re: WordPress index.php page suppression

        It should come at the top of the file. Keep in mind any request for anything that doesn't exist will still get wordpress due to those other rules.
        David Hubbard
        CIO
        Miva
        [email protected]
        http://www.miva.com

        Comment


          #5
          Re: WordPress index.php page suppression

          Hmmm... I'm still not able to get to the WP pages to view and edit them live. When I type in rescueandawareness.org/index.php, I'm getting redirected to index.html.
          Korey McWilliams
          Project Director
          _____________________________
          korey usbones dot com
          http://usbones.com

          Comment

          Working...
          X