If it’s just a few pages, then you could set redirects explicitly for these pages in your .htaccess file (it’s located in your WP install root folder), just add following lines on top of the file (you will need to write a rule for every page you want to redirect):
Redirect 301 /this-is-the-page /default-category/this-is-the-post
Redirect 301 /this-is-another-page /default-category/this-is-another-post
as you see the pattern is really simple:
Redirect 301 /old-page-path /new-page-path
Related Posts:
- How to Check if a Page Exists by URL?
- Redirect before post page
- Changing my permalink structure – will new layout conflict with existing page?
- Plain permalinks not working!
- Switch to page template when using post permalink
- 301 (static page instead latest posts)
- How to handle broken links created by permalink/slug changes?
- Custom Permalink Structure for Pages & Posts
- WordPress 302 Redirect to Random Product/Post/Page
- Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)
- Post/page title to permalink transformation – what is behind the scenes?
- When WP_Query only returns 1 post, how do I automatically redirect to that post?
- How to link post titles on page A to its posts on page B?
- Changing permalink of WordPress
- Creating a redirect option for current page url
- How Do I Redirect WordPress Pages but not posts?
- Please help a newbie with blog page issue?
- How to 301 redirect from url with post id to permalink with post name (slug)?
- Custom permalink for wordpress page / post
- Category URL to use same string as Post URL Permalink
- Permalink base only for posts
- How to give priority to page than to posts permalink structure?
- Precedence of page permalinks over woocommerce product category links?
- Posts in Page – How to customize the URL?
- One of my posts is displayed as page
- How to mix pages and sub-categories in a url
- 301 Redirecting posts without %postid% (just %post_name%) in permalink to ones with %post_name%_%postid%
- Blog posts are not appearing as subs of Blog Page
- Determine if page is the Posts Page
- Where is the old post permalink slug stored?
- Keyboard shortcut for updating a page or post?
- Difference between an archive and a page listing posts
- Using single.php from plugin folder instead of default template folder
- Skipping first 3 posts in wp query
- Subdomains to pages
- disable password protected page for logged users
- Overview with latest edited posts and pages
- Some posts returning 404 instead of displaying post
- get_permalink executes link without https
- Create pretty permalink for a post knowing the permalink structure
- Link post permalinks to subdirectory /post
- Remove permalink from images when inserting into post
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Private Posts/Pages & Search
- White Blank Page when Updating and Publishing Page/Post
- Posts vs. Pages
- Can’t get the_content of the parent page from its single post?
- Disable most recent & view all (TABS) on nav-menu.php
- How can I schedule a PAGE to go live at a future date/time?
- Add Word Limit to Posts
- Using permalinks, category slugs, and tag slugs
- How to insert 2 args into 1 Wp_Query for a slideshow
- How to check a post exist when the permalink has post id in it?
- How to do set post permalinks using 6 digit random unique function?
- Post categories to pages
- Any way for get_next_post() to use the actual post order instead of publish order?
- Why does WP_Post not contain its permalink?
- 2 dynamic sidebars registered, not showing up
- How to make default “Privacy Policy Page” a normal page?
- static landing page leading to author specific pages w/ “live” content
- Total number of posts in query (category/tag/author/search results/main page…)
- New Posts and Pages Won’t Save
- Custom permalink for each post
- Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?
- add_rewrite_rule and template redirect not working
- Direct some posts to only appear on a specific page
- Set Default Post as Parent Child (Nested) Relation
- How can I add random alphabets in wordpress permalink posts structure
- Oops! That page can’t be found
- Create a List of Widgets, where each widget holds three attributes
- Is there a way to know when a page has been updated and do some action only once?
- How can I make a post sub link?
- WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
- Redirect old Posts URL to new URL
- How do you change the permalink for posts for a single category?
- WP posts using index.php instead of single.php
- Put page on Archived statut after end of publication date
- How to add a block to a category page?
- post and page and custom post type
- Is it possible to query a category with specified posts?
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- how to redirect page after delete post inside a post page?
- WordPress URL question
- issue in wordpress auto delete post and redirect to another 1
- post_name is not stored until post is published… where should I store my slug until it goes live then?
- Theme does not respect spaces between paragraphs in pages
- My blog “page” used to show a list of posts, but now it’s just showing the page content?
- 404 error on every post and page other than home
- get next/previous post name
- Get current post’s child page?
- Redirect posts to sub domain except pages
- Limit amount of pages shown in pagination within wp_query
- how to show all type of author posts in author page (SOLVED)
- custom post type single page template not working
- How to make posts appear under pages
- WordPress Page Column Problem [closed]
- Default post type doesn’t display in url
- What function does the loop of displaying posts?
- How can I fixe the article title problem?
- Edit Page button is gone