I have an old wordpress installation in root of my website with the following structure:
/
shows a simple intro/blog
lists blog posts/13**/**/**/*
shows a specific post (permalink)/contact
/about
and some other pages exist (permalinks)
Now I want to dedicate the /
homepage to a new wordpress installation with new posts, etc. But I don’t want my old /blog
and post pages to break. I want them to remain at the same address (so google can find them) but move my old wordpress to a subfolder (so I can install the new one).
Any suggestions for this?
I have an old wordpress installation in root of my website with the following structure:
/
shows a simple intro/blog
lists blog posts/13**/**/**/*
shows a specific post (permalink)/contact
/about
and some other pages exist (permalinks)
Now I want to dedicate the /
homepage to a new wordpress installation with new posts, etc. But I don’t want my old /blog
and post pages to break. I want them to remain at the same address (so google can find them) but move my old wordpress to a subfolder (so I can install the new one).
Any suggestions for this?
Share Improve this question edited Jan 25, 2020 at 21:06 feetwet 1712 silver badges17 bronze badges asked Jun 6, 2015 at 16:29 SallarSallar 1214 bronze badges 2- Use a plugin like wordpress/plugins/simple-301-redirects to redirect requests to the correct URL. Or write such redirects into your .htaccess file (or similar config file used by your server). You will also need to update the URLs on the old site to reflect the new location of the old wordpress site but the redirects will help Google and users get to the old content without issue. – bemdesign Commented Jun 6, 2015 at 17:24
- You cant move your old WordPress from root to sub-folder and install new WordPress in root and keep your old permalink! Because of htaccess rules. I think post-type method is good one. (Parsa's Method 2) – Morteza Commented Jun 6, 2015 at 19:59
3 Answers
Reset to default 2Method 1: You can export your data from "Tools > Export" and for ensure export from database and rename old blog folder, then install WordPress in root & active WordPress Network. set url structure for new blog to sub-folder. now create new blog with "blog" name, login to blog & import old blog data. Your old post in blog and new post in main WordPress. copy old upload folder to new blog upload folder. this method is slightly involved but site run with one WordPress installation.
Method 2: Move old blog to root (for this method first set blog and WordPress address to new address in settings > general) and create new post type with "blog" name or slug, now install Post Type Switcher plugin and switch old post to new post type. set post type permalink structure to old structure.
Method 3: simple method you can install new WordPress in root and linked to old page for /contact, /about , etc.
try "update URL Plugin" It updates all urls and content links in your website; http://www.velvetblues/web-development-blog/wordpress-plugin-update-urls/
You need to redirect those urls with htaccess rules. Check here for example: https://stackoverflow/questions/3292506/help-with-htaccess-and-two-wordpress-instances