• Hi, I am hoping someone here can help me. I have a rather old html website, designed in frontpage in the late 90’s with thousands of pages of content. I am currently “making over” the website and putting it on the WordPress platform.

    I do not have the time or resources to convert the several thousand pages to wp pages or posts.

    Is there a way to integrate the new WP pages together with the old html pages all in the same root directory? (I would like the html pages to retain their same url for SEO.)

    I am getting a message that says “No Results Found. The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.”

    I would be happy to just have the old html open at all. Can someone tell me how to do that?

    And, even better, would it possible to open the html pages within the WP page structure, say with the header and footer? Without having to use a wrapper or iframe, but by just linking to the page?

    Thank you so much for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Every file that is on the server should still be directly available by its url. The .htaccess file should contain this:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    The RewriteCond statements mean ‘if file not found on the server’, in that case it will be rewritten to index.php. Check if your .htaccess file has the same contents.

    Getting the same design on the html pages is not possible without changing the html files or put them in an iframe. Your best bet is to create a script which reads all html files and create pages (or posts) of it. Then redirect all requests to .html files to WordPress.

    <[typify]>

    Thread Starter WPGoddess

    (@wpgoddess)

    Thanks so much for your help, Frank. So, that’s the exact code I need to insert? Does it require my domain name anywhere, or is it just exactly as you wrote it? Thanks again! 🙂

    Thread Starter WPGoddess

    (@wpgoddess)

    Hi again, Frank, I have been busy, busy creating my new WP website and am almost ready to begin integrating the old html pages.

    Can I ask you or anyone here a few important questions..

    1. From the WordPress pages, should I link to the html pages as just their page or as the full url? ie. mypagename.htm or http://www.mywebsite.com/mypagename.htm

    2. Once I add the above code to my .htaccess page, will there be any accessibility problems for accessing those pages outside of the WordPress framework while it is still in maintenance mode?

    Thank you so much for your help!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Integrating html pages with WP pages in same root folder’ is closed to new replies.