Moving all files from root to a subdirectory will work.
Don’t forget the .htaccess file.
Just after move the files, you should change the root path in Configuration -> General – Site address. To the right direction.
i.e.
Moving from http://example.com to http://example.com/blog/
Related Posts:
- Move WordPress to subdirectory, keep ALL URLs
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Setting up two separate blogs while using WordPress as a CMS
- Rewrite URLs for LeadPages due to subdirectory installation
- How can I say if a URL is a post, page, or taxonomy archive?
- Page URL not working due to physical directory
- How to separate an overgrown blog into sub-blogs – without breaking existing inbound links?
- Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder
- How to change permalink for listings
- Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)
- Moved WordPress to other folder (Windows) WAMP = 403 Forbidden
- How to put articles under a /blog directory?
- Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)
- Fresh wordpress installation in sub-directory not accessible
- Strange permalink issue: can’t rename /company-2/ to /company/
- How to get permalink and title from post ID?
- Using $_GET variables in the URL?
- Removing leading zeros from custom permalink structure
- How can I include a query string with get_permalink
- Post being redirected to attachment post
- Without index.php in permalinks I get 404 across site
- Changing Permalinks to a Custom Permalink causes a 404 Error [no matter what I do]
- How to assign a Permalink to a Function
- Redirect user if it’s not logged in
- Date archive permalink modification
- How to get this JavaScript working with get_permalink
- Add a css class to a taxonomy permalink
- Change of permalink structure – redirects in htaccess breaks the archive links
- Filter string like a slug
- 404 with post name permalinks
- Should there be a trailing slash in the permalink
- Link to external URL
- Confusion about how a URL is being parsed
- Woocommerce Product Attribute Permalink doesn’t work?
- Problem with wordpress links on a live site
- Permalink change redirects by WordPress [duplicate]
- WPML get permalink to the translated post from the original post
- page nested 3 levels deep shows 404
- Removing /author/ slug from URL gives 404
- Add custom post type name in term link?
- Can I create permalinks like this: /%post_type%/%postname%/
- Why the “Permalink” option is not showing in the “Settings”? [closed]
- How to get the full URL of the current page and change domain of it?
- Custom permalink structure: /%custom-taxonomy%/%post-name%/ (without CPT slug)
- get_permalink() is not working after published
- How can I get this custom post type permalink structure? %custom_post_type%-%taxonomy%-%term-postname%
- get_permalink returning site home url instead of the url of slug being passed
- WordPress add_rewrite_tag working for Posts, but not working for Pages
- Host frontpage via example.com and everything else via example.com/blog
- WordPress can generate numeric permalinks, which then 404
- 404 error using Meta for Permalink rewrite
- Permalink changes gives me 404 [closed]
- How to handle paging/pagination with a custom permalink?
- Environment independent way to link to certain pages on frontend
- Using one slug/post-name for multiple pages
- Custom URL rewrites for templates
- Gutenberg output URL to post from attribute with post ID
- Broken wordpress site, non-working links and no access to wp-admin page
- How can I get the list of all pages URLs including their shortlink IDs?
- How to change custom post type, blog post and page permalink by template?
- How to use Specific URLs for some posts
- How can you create a Permalink structure on a WordPress site?
- WordPress Permalink
- How to replace permalinks
- Multiple Tags Issue in Permalinks
- How to Use metada Value in Url and is it possible? [duplicate]
- Custom child page permalink
- How to allow slash(/) on page url
- Safest way to create a custom permalink
- Creating an alternate path for a page
- Permalinks causing wp-json to 405
- Parent/Child Categories Permalinks
- How to prevent wordpress from lowering Capitalized letters
- An excluded ‘ghost’ page is crashing my permalink
- Yoast and permalink troubleshooting
- Disable -2 Permalink Addition
- Permalink in relation with the files
- Every sub page shows Error 404, i have check permalink but still same issues
- WordPress project redirecting to a blank index.php when i use custom templates
- Allowing slash in slug/permalinks
- Custom Permlinks work, regular page permalinks don’t
- How to redirect from old standard wordpress permalink structure to new custom one
- Multiple Permalink Patterns for one page
- When is a good time to reset permalinks?
- wp_dropdown_categories links 404
- Permalink for Author’s Posts in a Category
- Search and replace post URL’s on page output?
- Two urls for one website
- Added incorrect rewrite rule now getting an error
- WordPress Pagination Not Working After Transfer from Localhost
- Accidentally changed the permalink structure
- Keep wordpress from modifying my permalinks
- customize urls displayed by previous_post_link and next_post_link
- Routing ‘fake’ sub sub posts
- Files placed in directory with wordpress 404
- Page and post auto links
- how to make follow?
- Permalinks Won’t Work
- Standard Htaccess directives disappear by themselves
- My permalinks no longer have the “news” category prefix in the link and it’s causing 404 errors for articles published on the web