Check your .htaccess file for the proper values. Here’s what WP recommends; you may need to adjust for your configuration (from here; more examples that might help) https://codex.wordpress.org/htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Also, check the values on the Settings, General page that the domain name is correct.
Then check the Settings, Permalink page to go back to one of the standard values (not the custom value).
You can also check the wp_options table for the correct domain name (in two places). That requires cPanel/myPHPAdmin access, though.
Back up files before you change anything.
Related Posts:
- After server migration only the homepage works
- Changing permalinks gives me 404 errors on nginx
- Getting the Site URL Including the Front Base
- Setting 404 page in Nginx
- Homepage loads but all permalinks are 404 when using nginx & PHP-FPM
- 404 on category.php pagination
- Posts not working on windows after changing permalinks
- How to get rid of index.php?
- removed index.php now all pages 404
- Redirect old permalinks with Month and name to Post name on new site
- Permalinks Structure and 404 Question
- After moving from subdirectory to home, home page does not display
- Getting links to work the same on development and production
- permalink changed, now getting 404 for every pages
- Permalinks broken regularly
- 404 Page Not Found for Only One Post
- Permalink /%category%/%postname%/ returns 404 on OSX
- Permalinks keep reverting to 404 unless I re-save them
- Clean install – Changing permalinks in twentyeleven give 404
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- Permalink change made author archive vanished
- Permalinks okay some pages but 404 error on others
- AWS WordPress Install – pages/posts 404 on restart until updating permalinks
- WordPress 404 in development area
- Permalinks by page/post name returning 404
- Custom Permalink
- Editing Pages Give 404 Error After WordPress Upgrade in Admin Panel
- Changing the post date without causing 404 error
- Nginx Rewrite Rule:: index.html added to every permalink
- Moving local wordpress page to a real server subdomain broke my permalinks?
- How to make /search/ without parameters not return a 404?
- 404 Error Problems with sCategory Permalink plugin
- Why does the ‘Month and Name’ Permalink Format not Work on my new WordPress Site (running on IIS7)?
- How to bulk edit image url in featured image and product description?
- WordPress post-name permalink redirects to site.com
- Page preview is shown, updating page gives 404 error
- Edit page slug after save, cause 404 by linked pages
- Unable to get /%postname%/ permalinks working, 404 on all links
- Correct permalinks and 404-error
- What would cause a theme to add extra characters to blog post links?
- Permalink Doesnt Work – URL Not Found
- Getting 404 when Access post which name start with Digit
- 404 when going to /blog
- Permalinks 404 error with HTTPS host
- Permalinks stopped working – NO update, mod_rewrite enabled, .htaccess not touched
- Accessing Subdirectories in WordPress Install
- Resolve 404 on posts without category
- Permalinks on post is working, on pages 404 error
- How do I change the permalink structure without getting 404s?
- 404 permalink errors on Pages only
- 404 on internal pages, in all sites in my local server
- Home page Pagination – Other pages do not redirect to home page template
- WordPress pages and posts are redirecting to server IP address instead of domain URL [closed]
- Page redirect to 404 when set Permalink = “Post Name”
- Fix 404 error after changing permalink structure
- Why does enabling Permalinks make pages not found?
- Changing permalink settings causes 404
- Main blog page works but title says Page not found
- WordPress permalink change causes all incoming links to give 404 errors
- using wp_redirect to redirect to a permalink
- old permalinks not found
- The requested URL was not found on this server [closed]
- Browsing to permalink prefix results in 404
- Problem with special character WordPress
- Xampp 7.3.3 fresh install of WordPress 404 pages unless permalink is set to plain
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- Custom structure permalink preventing 404
- Extending page urls without getting a 404
- Permalink not changing according to post type
- Got 404 error when changed siteurl via DB in WordPress
- I have a 404 error on all my pages! What do I do?
- 404 on pretty permalinks when serving via HTTPS
- 404 error on published page with specific permalink
- Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder
- 404 page not found – Yet open admin page it works
- Custom permalink gives 404 error only in some pages
- Logging in to installation in subdirectory renders broken dashboard (no CSS, broken links)
- Woocommerce product page 404 not found
- Remove Permalink of certain posts
- Problem with permalinks
- My permalinks for all pages and posts now include old page titles as parents/categories
- Remove index.php from URL (WP installed in subdirectory)
- wp_dropdown_categories links 404
- How to change URL of my pages?
- HTTPS permalinks resulting in 404
- LetsEncrypt WordPress on the Raspberry Pi – Nice url’s give 404 with https, http works
- Permalink Rewrite with Archive – Archive gets 404
- Change the permalinks structure
- When using number in url it is redircting to same page but when using character it redirects to 404
- Page_link change
- Folder Name and Category Name WordPress
- Although rewrite engine is on, I get 404 not found on every page
- 404 error on second page load for child-pages
- WordPress 3.1 problem, getting 404
- Remove index.php from URL
- permalinks url with woocommerce
- Siteurl code for links
- WordPress keep redirecting me to random URLs
- Plugins, themes and other dashboard links including permalinks giving 404 error
- WordPress Permalinks 404 Not Found