can you try replace
RewriteRule . /cpu/index.php [L]
by
RewriteRule . /index.php [L]
as for a way to debug…
well you can always var_dump a $wp_query object to get an idea what variables not passed to wp. (you can place ) into first line of your header.php template.
and i belive next step will be debug of rewrites in this case usefull filter is rewrites_array_rules which you can use for debug proposes in a next way
add_filter('rewrite_rules_array', 'rewrite_rules_array_filter_debug', 10000);
function rewrite_rules_array_filter_debug($rules){
var_dump($rules);
return $rules;
}
add this to header php
<?php
global $wp;
echo '<pre>';
var_dump($wp);
echo '</pre>';
?>
this shoudl give you a point what rewrite rulle trigger to you page request.
Related Posts:
- Including category-base in a post permalink results in 404
- WordPress thinks my custom route is a 404
- Unable to get /%postname%/ permalinks working, 404 on all links
- Permalinks 404 error with HTTPS host
- Visiting posts results in 404 errors after host migration
- WordPress pages and posts are redirecting to server IP address instead of domain URL [closed]
- WP-e-commerce (getshopped) – Annoying permalink issue [closed]
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- Folder Name and Category Name WordPress
- Although rewrite engine is on, I get 404 not found on every page
- remove “index.php” from permalinks
- Passing and retrieving query vars in wordpress
- How does WordPress handle permalinks?
- How to remove dates from existing permalinks?
- Getting the Site URL Including the Front Base
- Setting 404 page in Nginx
- Date based URLs for custom posts and pagination
- How to custom change author base without $this->front?
- How to prevent the default home rewrite to a static page
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- How to remove the index.php in the url?
- Remove subfolders from URL
- Rewrite user profile URL to be human friendly
- Rewrite URL Parameter And Force ‘Pretty’ Permalink
- rewrite_rule for custom post type doesn’t affect get_permalink
- Add ‘articles’ prefix before blog posts url without affecting pagination
- Permalinks broken regularly
- 404 Page Not Found for Only One Post
- Incorrect 404 for pages when using permalink, a static front page, and posts page
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- How to improve WordPress security by hiding non public facing files?
- Call to a member function add_rule() on a non-object
- Change author slug and functionality
- Problems redirecting to “pretty” permalinks (wordpress in Subdirectory)
- Why does chrome keep downloading a file instead of running the site?
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Permalink change made author archive vanished
- Re-write specific custom post type category URL to go to another page
- Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules
- WordPress 404 in development area
- Is it possible to keep all special letters for foreign languages in slug as in title?
- Change blog segment of URL
- Custom Permalink
- Nginx Rewrite Rule:: index.html added to every permalink
- Moving local wordpress page to a real server subdomain broke my permalinks?
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Page preview is shown, updating page gives 404 error
- Using taxonomy term in CPT permalink – Pages 404’s
- Redirect a Blogger Page URL to wordpress
- Custom permalink leads to index page
- Edit page slug after save, cause 404 by linked pages
- Correct permalinks and 404-error
- What would cause a theme to add extra characters to blog post links?
- Getting 404 when Access post which name start with Digit
- Mirror content based on URL slug
- How to change hierarchical page permalinks to be flat
- IIS 7 Rewrite with parent categories
- Passing the JQuery string to Worldpress URL
- Format HTTP links
- Permalinks on post is working, on pages 404 error
- Change directory url to be same as page permalink?
- Order custom post type posts by custom field with pretty URL
- Show category name in the post URL only for specific categories
- Adding URL prefix for foreign language support
- Exclude single page from permalink rule
- Bulk append URL (add word to slug)
- help to remove last trailing slash using add_rewrite_rule
- Change permalink to attachment
- Why does enabling Permalinks make pages not found?
- Changing permalink settings causes 404
- Main blog page works but title says Page not found
- WordPress permalink change causes all incoming links to give 404 errors
- Problems with permalinks (.htaccess not working)
- using wp_redirect to redirect to a permalink
- old permalinks not found
- Browsing to permalink prefix results in 404
- Subdomains pointing to a permalink URL
- Can I change the URL structure for a CPT only?
- How to set add_query_arg properly for home page?
- corrupted URLs – can’t leave starting page
- Multiple Taxonomy Items for Separate URLs
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- Permalink not changing according to post type
- Website URL Permalinks
- Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder
- 404 page not found – Yet open admin page it works
- Remove Permalink of certain posts
- Problem with permalinks
- rebuilding/ rewriting a url to make it SEO friendly
- How to rewrite a folder in WordPress?
- LetsEncrypt WordPress on the Raspberry Pi – Nice url’s give 404 with https, http works
- Rewrite single template permalink?
- Category-dependent custom permalink
- Customized author slugs not working with get_author_posts_url method
- Editing the variables in a custom URL
- How to change pagination base from slash to query form?
- region selection
- WordPress 3.1 problem, getting 404
- Include language variable in url
- Blog URL Structure – Multiple Taxonomies