Permalink in relation with the files
Permalink in relation with the files
Permalink in relation with the files
Disable -2 Permalink Addition
What you need is to register your own Rewrite Rule. To do it you should use add_rewrite_rule function. function my_custom_external_rewrite_rule() { add_rewrite_rule(‘^post-type-name/([^/]+)/?’, ‘index.php?page_id=<PAGE_ID>&external_page_name=$matches[1]’, ‘top’); } add_action( ‘init’, ‘my_custom_external_rewrite_rule’ ); And you’ll have to register your custom query variable (using query_vars hook): function my_custom_external_query_var( $query_vars ) { $query_vars[] = ‘external_page_name’; return $query_vars; } add_filter( ‘query_vars’, ‘my_custom_external_query_var’ … Read more
I would be interested in what the page slug is…perhaps some non-ASCII characters in there? And, what happens if you change the page slug? Maybe there is another component in the page request that is causing the 404. Look at all request for that page (via Developer Tools in your browser) to see which request … Read more
Posts containing a specific tag and a category in one permalink
To verify that this will not be a SEO problem, check the HTML source code of both pages (with the dot and dash spelling). If they contain <link rel=”canonical” href=”http://domain/slug”> tags that aren’t different from each other, it will not cause a duplicate content problem, as robots will consider this to be two different spellings … Read more
How to change permalink for listings
Custom optional parameter in page URL
Hmm, I would use the Permalink Manager Lite plugin (free). or it’s PRO version ($39): https://permalinkmanager.pro/ Makes life easier 🙂
Permalink issue with WordPress Site at domain root and another WordPress Site in a Subfolder