I ended up changing
location ~ ^/.*\.php$ {
try_files $uri = 404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
to
location ~ ^/.*\.php$ {
try_files $uri $uri/ /index.php?$args;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
It now works, but I feel that is a security issue now.
Related Posts:
- Changing permalinks gives me 404 errors on nginx
- Setting 404 page in Nginx
- How to remove the index.php in the url?
- Homepage loads but all permalinks are 404 when using nginx & PHP-FPM
- Enable Minify in W3Total Cache using NGINX [closed]
- 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
- After updating to 4.8 permalinks will not work (all 404)
- Server Move: All pages leading home
- WordPress Permalinks & Nginx Rewrite Rule Not Working
- How do I fix permalink and media library issues on a LEMP stack?
- 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)
- 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
- Multiple sites with pretty permalinks with nginx
- Redirect old /%category%/%postname%/ to just /%postname%/
- WP permalink working, but why content doesn’t display
- permalinks constantly needs re-saving
- wordpress admin panel loop on nginx
- WordPress and NGINX – permalinks are not working with ending slash
- ReWrite Permalink to New Permalink Nginx
- Why is “/page/2/” not working?
- How does WordPress handle permalinks?
- Why would Numeric permalinks work, but %postname% won’t?
- Passing variables through permalink structure
- Remove subfolders from URL
- Why does WP not use relative links when linking pages?
- WordPress 403 issue when passing parameters in the URL
- Change the custom post type permalink
- Media items hogging pretty permalinks
- Make Category Base Appear in Posts Permalink (but not tags)
- Getting a 500 internal server error ONLY on wp-admin/options-permalink.php
- How to replace “wp-content/blogs.dir” with “media” for attachment permalinks?
- After moving from subdirectory to home, home page does not display
- If the only permalink setting is %postname% what happens in the case of old duplicates?
- How to hyperlink both post thumnail image and post title text in wordpress?
- How to modify the slug for the default wp posts without affecting other posttypes?
- Permalinks okay some pages but 404 error on others
- Force pretty permalinks?
- WordPress get permalink function
- Page and Category With Same Slug – Looking To Silo Website
- Override category permalink to match old non-WordPress links?
- filtering special chars from post slug
- How to change old permalink?
- Losing preview ability: W3 Total Cache + Post name permalinks
- Get the url of a page template without using the page slug and ID
- Broken Link in WP Site?
- How to change “attachment_id” in attachment permarlink?
- How to use different domains for different blogs hosted in the same host in subdomains with .htaccess
- Custom permalinks in WordPress
- Permalink opens attachment instead of page
- How do I get thumbnail generator to recognize the_permalink tag?
- Changing WordPress routing to load the same page for different URLs
- Custom post type clean shortlink
- Exclude single page from permalink rule
- the_content(); erroneously closing off previous opening before it
- Bulk append URL (add word to slug)
- Image URL and size
- defining child page permalink
- Browsing to permalink prefix results in 404
- Shortcodes not working
- WordPress Posts forced to load as Uncategorized
- replicate url permalink after migrating to wordpress
- I need to change the attribute of the isPermaLink guid in the WordPress RSS feed – from false to true
- Shortlinks work only for logged in users
- Changing permalink for blog posts, current structure www.website.com/blog-post, change to, www.website.com/blog/blog-post
- Does wordpress take care of slug collisions?
- WordPress permalink not working on subdomain
- Fatal Error when trying to load Permalinks page on WP admin [closed]
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- Cannot publish posts or pages when I change permalink structure
- Add /blog prefix for all WordPress front end url
- Permalink structure has suddenly changed
- Remove Permalink of certain posts
- Bulk update set of URLs via SQL
- Custom permalink for one category
- rebuilding/ rewriting a url to make it SEO friendly
- Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
- Permalink change during save of post
- Changed Permalinks settings, how do I redirect posts on Nginx?
- Choose permalink on a per-post basis?
- How to put articles under a /blog directory?
- Category-dependent custom permalink
- Pretty permalinks (again)
- How can I get WordPress CPT archives and page templates to work with prettified permalink settings?
- Passing user defined variable into get_permalink
- WordPress Archives Cause Looping
- Is there a way to add slug to home_url on this function?
- Customized author slugs not working with get_author_posts_url method
- Custom WP permalink structure
- region selection
- Redirecting From An Old Permalink Structure
- How to change my URL on intranet
- Include language variable in url
- Is it posible to translate a url prefix?
- Settings > Permalinks – mod_rewrite ineffective if expression not preceded by /index.php/