This answer was based off the comment from @Rup on the question. I needed to add a .htaccess
file to my source. I did this with the default contents:
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
which I got from here: https://wordpress.org/support/article/htaccess/
Adding this at the root of my deploy package (uploaded source) and the problem went away.
Related Posts:
- Move WordPress to subdirectory, keep ALL URLs
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- removed index.php now all pages 404
- After moving from subdirectory to home, home page does not display
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- WordPress 404 in development area
- Custom Permalink
- Page preview is shown, updating page gives 404 error
- Accessing Subdirectories in WordPress Install
- old permalinks not found
- LetsEncrypt WordPress on the Raspberry Pi – Nice url’s give 404 with https, http works
- When using number in url it is redircting to same page but when using character it redirects to 404
- Folder Name and Category Name WordPress
- multisite 404 error for subdirectory
- 301 Redirects for Changed Permalink Structure & Category Base
- Permalinks to Custom does not work (out of box)
- Passing variables through permalink structure
- Remove subfolders from URL
- 404 on category.php pagination
- htaccess or redirect to cloak portion of a link?
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Using only %postname%
- Posts not working on windows after changing permalinks
- wordpress permalinks tweeks
- Getting a 500 internal server error ONLY on wp-admin/options-permalink.php
- Redirect old permalinks with Month and name to Post name on new site
- .htaccess – Redirect duplicated post ended in ‘-number/’ to the same url without the -number/
- Specific URL Rewriting with parameters in wordpress
- permalink changed, now getting 404 for every pages
- Rewrite my default post URL
- Permalink /%category%/%postname%/ returns 404 on OSX
- Permalinks keep reverting to 404 unless I re-save them
- Permalinks: Page Not Found
- Permalinks okay some pages but 404 error on others
- Changes to .htaccess not updating the file (old rules still take effect)
- Permalinks by page/post name returning 404
- Permalinks settings page blank
- 301 Redirects Result in 404 for WordPress Search Query Strings
- After updating to 4.8 permalinks will not work (all 404)
- Editing Pages Give 404 Error After WordPress Upgrade in Admin Panel
- Only default permalink is working mod_rewrite enabled
- Changing the post date without causing 404 error
- 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 do I add /blog/ as a prefix to permalink structure for posts, categories & tags?
- WordPress Sub domain
- How to change old permalink?
- Redirect Uploads Folder to Query Vars in WordPress
- WordPress url ingore permalinks setting [closed]
- URL rewriting: removing the site’s basename for a specific category
- Redirecting all posts after changing URL structure with htaccess
- Redirect all posts permalinks from “.html” to “/”
- flush_rewrite_rules breaks permalinks
- Unable to get /%postname%/ permalinks working, 404 on all links
- Permalinks stopped working – NO update, mod_rewrite enabled, .htaccess not touched
- How to rewrite a URL to another rewritten URL without changing the address?
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- Custom permalinks in WordPress
- Resolve 404 on posts without category
- url rewrite .htaccess extension to permalink
- Changing WordPress routing to load the same page for different URLs
- Test site pages go to main site
- How do I change the permalink structure without getting 404s?
- Strange behavior: random HTTP error 500 fixed by visiting Permalinks settings page (htaccess issue with language code)
- how to prefer static page if it exists over wordpress page
- 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]
- Why will Pretty URLs not Work?
- How Can I Use a Custom AccessFileName?
- xammp server permalink by postname not working
- Conditional Permalink based on category?
- 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
- Custom structure permalink preventing 404
- Extending page urls without getting a 404
- Got 404 error when changed siteurl via DB in WordPress
- All files in public_html, Cannot launch WordPress site via wp-admin
- Cannot publish posts or pages when I change permalink structure
- 404 on pretty permalinks when serving via HTTPS
- 404 error on published page with specific permalink
- Custom permalink gives 404 error only in some pages
- Remove Permalink of certain posts
- Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- My permalinks for all pages and posts now include old page titles as parents/categories
- Remove/hide a specify category-name from the url
- Removing or hiding slug/permalink from htaccess
- Pretty permalinks (again)
- Change the permalinks structure
- Page_link change
- Although rewrite engine is on, I get 404 not found on every page
- 404 error on second page load for child-pages
- How do you put your own rules into .htaccess?
- Use .htaccess to redirect homepage to its permalink
- WordPress Permalinks 404 Not Found
- 301 Redirect posts to newly added categories
- How to use ‘blogs.dir’ as media upload instead of ‘uploads’ directory in WordPress multisite setup