Problem with loading plain static HTML pages within Wordpress

Discussion in 'PHP' started by Rockstr27, Mar 6, 2010.

  1. #1
    I have some static HTML pages that I uploaded to a server that has Wordpress installed and when I call those static pages, I get the Wordpress 404 error - I did not want to create these pages with Wordpress - does anyone know a way around that to allow my pages to load without moving Wordpress outside my root? Followng is my htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    Code (markup):
    Thanks!
     
    Rockstr27, Mar 6, 2010 IP
  2. Rockstr27

    Rockstr27 Well-Known Member

    Messages:
    1,052
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    115
    #2
    I found a quick fix to just create a subdomain that holds all the static pages, but if someone has a work around to house them on my root domain that they can share, I would appreciate it!
     
    Rockstr27, Mar 6, 2010 IP
  3. SpamHat

    SpamHat Peon

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Untested, and mod_rewrite isn't my strong point - but this should work:

    
    
    RewriteRule html-file.html html-file.html [L]
    RewriteRule html-file2.html html-file2.html [L]
    RewriteRule html-file3.html html-file3.html [L]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    Code (markup):
     
    SpamHat, Mar 6, 2010 IP