The problem resolved, I just need to add a location entry as follow:
location /new {
try_files $uri $uri/ /new/index.php?$args /new/index.php?q=$uri&$args;
}
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
- nginx – permalinks with .php in url not working
- Enable Minify in W3Total Cache using NGINX [closed]
- Permalinks keep reverting to 404 unless I re-save them
- 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
- Need help with add_rewrite_rule
- Removing Parent Page(s) from Permalink
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Page begins with number, WordPress adds 2
- Why don’t WordPress post slugs allow accents?
- Multi-language permalink in qtranslate
- Modify get_permalink with a specific filter
- Include Taxonomy slug in post url
- How to set permalink to fetch all children custom posts with parent post in wordpress?
- Rewrite url / permalink for default archive – yearly / monthly
- Should I use relative or absolute urls when pointing to internal pages
- WordPress on VirtualBox – no pretty permalinks
- permalinks has -2 with post name structure. why?
- How can I change permalinks to use a different domain and path from where the blog is hosted?
- Gutenberg Editor: dynamicaly change slug field with an ACF field
- Child pages with same slug
- Permalinks, Rewrites, Get Variables, Oh My!
- Permalink problem
- Removing leading zeros from custom permalink structure
- When is it a good idea to build a permalink structure from scratch?
- I copied my site to another site but all links point to old site
- WordPress on Ubuntu 12.10: permalinks problem
- wordpress api using rest_route for other pages
- Infinite redirects after changing the permalink of a page
- Permalinks settings page blank
- Remove custom taxonomy base from URL
- How to have extra permalink for posts
- Trouble with numeric permalinks after 4.3.1
- How to get post object on blog template
- WordPress auto generates small medium and large of an image on upload, how can we guess their links?
- Plain to postname permalinks not working
- Permalinks dropping after 3-4 weeks with no changes in theme or plugins
- WordPress Sub domain
- How can i have a custom post type with more slugs for each post?
- Create a PHP page to refresh the permalink on a custom table
- Google webmaster duplicate url issue with /page/01 /page/400
- URL rewriting: removing the site’s basename for a specific category
- Migrated from Windows to Linux. Any bulk methods for fixing case sensitivity?
- Unable to get /%postname%/ permalinks working, 404 on all links
- Permalink structure between 2 custom post types and a taxonomy
- How to use all tags in post permalinks
- Remove parent page from url
- Remove “attachment/” from the URL of attachment pages
- 404 on internal pages, in all sites in my local server
- how to alter permalink in wordpress?
- Adding User Info to Permalink of User pages – is it neccessary?
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Permalink will not change – it wants to have -2 slug [duplicate]
- Permalinks 404 after Subdirectory to Root Migration
- Custom permalink structure only saves with index.php inserted
- Two custom taxonomies in permalink structure
- What is the simplest way to create a redirect
- the_permalink() not working
- Already have htaccess but permalink settings not working. Getting 404
- How can i fix my permalinks?
- Adding custom query var to a single post without redirecting to its root slug
- Flush rewrite rules with scheduled event (cron)
- I have a 404 error on all my pages! What do I do?
- All files in public_html, Cannot launch WordPress site via wp-admin
- Extra url paths as variable
- Propper way to set anchor and url param
- Prevent 301 when a trailing slash added
- Do shortcodes in title before permalink is generated
- How to change URL of my pages?
- Pretty permalinks returning “not found” on localhost and server
- Removing or hiding slug/permalink from htaccess
- WordPress Permalink Problem
- Converting WP Page to use full explicit paths?
- Latin character conversion
- Update permalinks
- Losing the original URL when using add_rewrite_rule
- Permalink issues with Ubuntu Server – Infinite loop & Wrong pages
- WordPress keep redirecting me to random URLs
- How to make a permalink variable %year% become two digits instead of four digits?
- Stymied by 500.5 error for WordPress on IIS 8 / Windows Server 2012