How do I add /blog/ as a prefix to permalink structure for posts, categories & tags?
How do I add /blog/ as a prefix to permalink structure for posts, categories & tags?
How do I add /blog/ as a prefix to permalink structure for posts, categories & tags?
I have added the following rewrite rule to my .htaccess (above the previous rewrite rule): RewriteRule ^wp-content/uploads/(.*)$ dl-file.php?file=$1 [QSA,L] You presumably have another .htaccess file in the /wp subdirectory that contains the main WordPress directives (ie. # BEGIN WordPress etc.). You should be adding the above rule to the /wp/.htaccess file, not the one in … Read more
In regards to when you need to be flushing the rewrite rules: This should only happen once, make sure you are not calling flush_rules() on init, as this will really kill performance for high traffic sites. WordPress stores all of the rewrites in an array in the database, so all you need to do is … Read more
Cadeyrn’s code work probably for 1 specific size ( 200&w=350& etc) , the major problem with timthumb and the reason people use it, is that it allows for many dynamic sizes thus making .htaccess rewrite rules much more difficult, especially if you using friendly WordPress permalink structure. There is a guide here on how to … Read more
Well I solved it – in a rather unsatisfactory way – by explicitly re-defining the default posts rule in my own code. i.e. $rewrite_keywords_structure = $wp_rewrite->root.”/%year%/%monthnum%/%postname%/”; ..etc.. I don’t really understand why this is necessary, but there you go.
Ozh has a great tutorial about pretty login URLs, that you might find helpful – Pretty Login URL: a Simple Rewrite API Plugin Example
As I find myself googling about rewrites again, a full year later I will post the solution that was provided to me by the tutorial’s author. The solution was to set the desired query_var when registering the taxonomy. register_taxonomy( ‘product_cat’, ‘product’, array( ‘query_var’ => ‘product-category’ ) );
Here’s a solution. See comments at the end… // I am a functions.php file of a plugin called “sample” — implement me slightly differently for a theme. // Note this code requires WP 3.0 or greater. class SAMPLE { public static function activatePlugin() { self::rewriteURL(); flush_rewrite_rules(); if (get_option(‘permalink_structure’) == ”) { self::updatePermalinks(); } // add … Read more
Okay, I found a solution. First of all I need to chose the id. Tryed with p=id, but it always returned the page without the parameters. All I needed to do was to add page_id=id instead. I would also need to add a rewrite for every new level.
Go to Dashboard > Settings > Permalink Settings. However it’s set, change it to something else, one of the other formats. I had an issue moving, same symptom as you described, and this fixed it. You can also see this help guide on Go Daddy for help with this issue. (this edit added by another … Read more