Removed and Reinstalled WordPress, Redirect Broken now

change this line in your index.php on root from require(‘./wordpress/wp-blog-header.php’); to require(‘./wdps/wp-blog-header.php’); then make an .htaccess file on root like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wdps/ RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wdps/index.php [L] </IfModule> # END WordPress

What is the best way to insert links indepently of the permalink structure?

When writing html in the code, if you use <a href=”https://wordpress.stackexchange.com/questions/111843/<?php echo get_permalink(123); ?>”></a> The url outputted is http://www.site.com?p=123 if you deactive pretty permalinks or, if you active pretty permalinks it change automatically according to your permalink structure. You never have to hardcoding url in Worpress when writing html in plugin / template files. If … Read more

permalink repeated

You sound like you are multisite which I don’t use but if this were a single site install I would tell you to remove blog/ from WP_SITEURL.

Storing postID in session variable to query database when visitor on custom template page

If your only need is convert a a permalink structure in a get variable use an endpoint. <?php /** * Plugin Name: Question 112350 Plugin * Author: G.M. */ /** * Add a new role cloning capabilities from editor and flush rewrite rules */ function install_q112350_plugin() { plugin_q112350_endpoint(); flush_rewrite_rules(); } /** * Remove the role … Read more

Tag URLs load a single post

G.M.’s comment was correct – this was a plugin issue. A legacy pagination plugin (“Multipage Toolkit”) I’d replaced from the old install was hijacking permalinks. The plugin was no longer necessary as WP supports pagination natively. I removed the old plugin, reset permalinks again, and all was well.

Category / Custom Post Type permalink issue

A few issues- there is no %book_type% rewrite tag, your rewrite tags are %book% and %chapter%. Change all instances of %book_type% to %book%. Your taxonomy slug should just be ‘rewrite’ => array( ‘slug’ => ‘books’), the rewrite tag shouldn’t be in there. Last (minor) issue- In your post_type_link filter, you should wrap the fetching of … Read more