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/
- How can I use an .htaccess file in Nginx?
- Is it possible to get a page link from its slug?
- Need help with add_rewrite_rule
- After server migration only the homepage works
- where is permalink info stored in database?
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- Change media item permalink
- Get Permalink without domain (i.e. get relative permalink) [duplicate]
- How does WordPress create URLs that Apache knows about?
- Strange permalink issue: can’t rename /company-2/ to /company/
- Passing and retrieving query vars in wordpress
- Get the current page URL (including pagination)
- Stop WordPress appending `-2` to the end of my url after i change it
- Get default permalink structure from pretty URL’s
- How to get permalink and title from post ID?
- Why is “/page/2/” not working?
- WordPress Permalinks not working in Apache2 Ubuntu 14.04
- Performance of my permalink structure?
- Permalink format: singular or plural
- What is the difference between get_post_permalink and get_permalink?
- WordPress matching URLs with trailing tildes
- Get current URL (permalink) without /page/{pagenum}/
- How does WordPress handle permalinks?
- Pretty permalinks for search results with extra query var
- Get page permalink without wpurl
- How can I get the privacy policy page?
- Can I use REST-API on plain permalink format?
- WordPress slug issue with non-latin characters
- Change permalinks for posts but not for custom post types
- Rewrite Rule for Multilingual Website, Like qTranslate?
- How to get pretty URLs with add_query_arg in permalinks
- What is the best permalink structure for SEO?
- Creating custom permalink structure for languages
- Hide permalink and preview button and link on custom post
- Custom post type permalink endpoint
- How can I make Capital letter ( upper-case ) permalinks?
- How can I reverse engineer a Permalink to Find the Page?
- Mapping Domains to Permalinks (not multisite)
- How do I set a custom base URL for standard posts?
- Removing Parent Page(s) from Permalink