Integrating an existing website with WordPress
-
I currently have a website with about a hundred pages that I have coded myself in HTML. Within this website, in a sitename/blog folder, I have a WordPress blog. The HTML & WordPress pages are styled the same.
I want to upgrade to a new WordPress theme using the Genesis Framework, and I want to move all the HTML pages into WordPress as Pages. (This will change the URLs for each page (from sitename/folder/pagename.shtml to sitename/category/pagename, but I can deal with that with redirects in the .htaccess file.)
But I have a fundamental problem. If I continue with WordPress in the blog folder (which will end up being the only folder in the root directory), all the Pages will have the URL sitename/blog/category/pagename which is clumsy. But if I move the WordPress installation to the root directory to simplify the Pages URLs, I lose the connection with the database and the site crashes (I know because of I have been trying things out on a dummy site).
So my questions are please:
1. If I keep WordPress in the blog folder, can I alter the base of my Page URLs to remove the /blog from the URL? I imagine there will be a PHP file which sets this up?
2. If I move WordPress to the root directory, is there any way to ensure I keep the connection to the database and so keep all my current posts, settings and comments? This would be the tidier solution, but riskier.
Thanks.
The topic ‘Integrating an existing website with WordPress’ is closed to new replies.