Your proxy is rewriting everything to index.php
, which means that the backend never sees the original URI. The proxy should be transparent, like this:
server {
listen 80;
server_name example.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8080;
}
}
Related Posts:
- remove “index.php” from permalinks
- Changing permalinks gives me 404 errors on nginx
- Change author permalink
- How to remove dates from existing permalinks?
- Setting 404 page in Nginx
- My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
- “.#[random-char-string]” being inserted at end of URLs
- mod_rewrite enabled but Permalinks show index.php
- WordPress on a subdirectory of Laravel – WordPress pretty permalinks inner page shows laravel
- How to remove the index.php in the url?
- How to map permalinks with accented letters to sanitized slugs?
- Homepage loads but all permalinks are 404 when using nginx & PHP-FPM
- Without index.php in permalinks I get 404 across site
- nginx – permalinks with .php in url not working
- Enable Minify in W3Total Cache using NGINX [closed]
- add new permalink structure from dynamic page
- Permalinks keep reverting to 404 unless I re-save them
- WordPress installation in subfolder not working with nginx
- WordPress blog posts permalinks giving 404 on nginx
- WordPress Permalinks still not working despite all necessary settings
- After updating to 4.8 permalinks will not work (all 404)
- WordPress Permalinks & Nginx Rewrite Rule Not Working
- How do I fix permalink and media library issues on a LEMP stack?
- Only default permalink is working mod_rewrite enabled
- Nginx Rewrite Rule:: index.html added to every permalink
- WordPress post-name permalink redirects to site.com
- WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)
- How to remove specific category from URL in WordPress
- NGINX serve WordPress from sub-path fails with 404, how to fix?
- After updage wordpress 4.4 to 4.5 nginx config works not properly
- Nginx url rewrite rule problem
- permalink results to “page not found”
- mod-rewrite exception? keep #hash in matching urls?
- .htaccess rewriterule being ignored – tyring to remove dates from WP posts
- Can’t get permalinks working!
- Permalink sub-routing catch-all
- Permalinks not working in WordPress
- WordPress Page Not Found if Permalink Settings is Postname
- Access posts while mod_rewrite is broken
- Multiple sites with pretty permalinks with nginx
- mod-rewrite rules grabs “broken permalinks”, too
- Need to capture “keyword” added to the end of the post, even with “pretty permalinks”
- Already have htaccess but permalink settings not working. Getting 404
- Redirect old /%category%/%postname%/ to just /%postname%/
- WP permalink working, but why content doesn’t display
- Changing permalink stops me from creating webpages
- How can I put WordPress in a directory but keep just the home page at the domain root?
- permalinks constantly needs re-saving
- wordpress admin panel loop on nginx
- WordPress and NGINX – permalinks are not working with ending slash
- How to change permalink structure and keep permalinks for old posts
- Pretty permalinks (again)
- ReWrite Permalink to New Permalink Nginx
- Only homepage working correctly, 404 error on everything else
- customize urls displayed by previous_post_link and next_post_link
- .htaccess not working in WordPress
- WordPress home page showing 404 error
- how to create several url aliases for a page
- Permalinks is not working in my wordpress setup
- Settings > Permalinks – mod_rewrite ineffective if expression not preceded by /index.php/
- Pretty permalinks for search results with extra query var
- Post being redirected to attachment post
- Redirect user if it’s not logged in
- Random Alphanumeric Key URLs
- 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
- Change permalinks with ACF values
- Changing Custom Permalink with Filter
- Link to external URL
- Confusion about how a URL is being parsed
- WPML get permalink to the translated post from the original post
- add_rewrite_rule not working for me
- List / Get post redirects
- Mod_Rewrite to show only last subcategory in URL
- example.com/index.php/%postname is working while /%postname is not working WordPress on IIS6
- 301 Redirect for Non-Date Based URL’s
- WordPress is suppressing page extensions!
- get_posts post title permalink not working for last item in array
- Add post overwriting permalink from previous post in 4.6
- Make custom post available under main domain directly?
- Add variables to all permalinks in site
- What is the right way to clean up $title before wp_insert_post?
- How to get links to user and tag by its name?
- How to Use metada Value in Url and is it possible? [duplicate]
- How to allow slash(/) on page url
- Safest way to create a custom permalink
- An excluded ‘ghost’ page is crashing my permalink
- Yoast and permalink troubleshooting
- Permalink Issue | Too many redirects
- WordPress/NGINX not respecting the category URL for new posts
- WordPress project redirecting to a blank index.php when i use custom templates
- Custom Permlinks work, regular page permalinks don’t
- How to redirect from old standard wordpress permalink structure to new custom one
- wp_dropdown_categories links 404
- Two urls for one website
- Added incorrect rewrite rule now getting an error
- Keep wordpress from modifying my permalinks
- Permalink Issue – Funny & Weird
- Files placed in directory with wordpress 404