简体   繁体   中英

How Integrate existing wordpress blog into a new web-site?

I had a wordpress blog which was hosted in the public_html directory but in order to add more features I have developed a seperate web-site. I have a new index page and several other pages to serve my needs. My problem is that I can not just put the wordpress into a new directory like blog because I would like to keep all my links and content same. So I would like to keep the wordpress blog but I also would like to have a new index page. Any suggestions?

You can move your wordpress install into a new folder, no problem. Just make sure to update the paths in the wordpress config, otherwise the links won't work correctly.

If you've linked to blog pages in blog posts, you'll have to edit them manually.

See Moving Wordpress and Moving a root install into it's own directory (they're different processes, it sounds like you want the first link, but read the second just in case).

If you want external links to continue to work, you could either (a) try to catch them and redirect with URL Rewrite rules in .htaccess, or (b) write a custom 404 error page in something like PHP that would redirect them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM