Customize category permalinks
Settings > Permalinks > Custom structure blog/%category%/%postname%/ This works for me, it returns: example.com/blog/category/post-name
Settings > Permalinks > Custom structure blog/%category%/%postname%/ This works for me, it returns: example.com/blog/category/post-name
I made modification of rules, now it is working fine. #For post page URLs RewriteRule ^(.*)-some-category-suffix(.*)-some-category-suffix(.*).jpg.html(.*)$ /category-url/$1$2$3.html [L,R=301] #For post add-on page URLs RewriteRule ^(.*)full-size/(.*)-some-category-suffix(.*)-some-category-suffix(.*).jpg-(.*)(.*).html$ /category-url/$1$2$3$4.html?-$5$6 [L,R=301] #Category URLs RewriteRule ^(.*)-some-category-suffix(.*)-some-category-suffix(.*)$ /category_url/$1$2$3 [L,R=301]
There is no such thing as “URL that doesn’t exist” URL’s are just possible identifiers for pages on the internet. Every combination of characters as defined by the URL standarts is a valid URL. You can’t control what URLs people are using to find content, if they want to use URLs for content that do … Read more
does your query have this $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘posts_per_page’ => 3, ‘paged’ => $paged ); query_posts($args); see documentation about pagination http://codex.wordpress.org/Pagination
I found an answer within 10 minutes of posting this. 🙂 Just add ‘hierarchical’ => true in the rewrite=>array() of the taxonomy as follows: $args = array( … ‘hierarchical’ => true, ‘rewrite’ => array( ‘slug’ => ‘THE-CHOSEN-SLUG’, ‘hierarchical’ => true, ), ); register_taxonomy( ‘my-custom-taxonomy’, array( ‘page’, ‘my-custom-post-type’ ), $args ); Then flush the rewrite rules … Read more
URL rewrite function and pagination with year in the url
WP has global $is_iis7 variable, which is filled via following code: $is_iis7 = $is_IIS && intval( substr( $_SERVER[‘SERVER_SOFTWARE’], strpos( $_SERVER[‘SERVER_SOFTWARE’], ‘Microsoft-IIS/’ ) + 14 ) ) >= 7; If detection is not working correctly likely something is going wrong with this line, such as server vars not being filled with the info expected.
WordPress has support for installing in a different directory to your desired home directory. Have a read of the two bullet points near the top of this page: http://codex.wordpress.org/Changing_The_Site_URL
My recommendation is to register a custom post type. You can call it products, and then all posts placed under Products will get the http://domain.com/products/some-product rewrite. Once it’s its own post type, you can specify a custom template for it, single-product.php, and you can add any custom fields, classes, etc. from there.
You can handle rewrites in a plugin or in your theme’s functions.php. I think something like this might work (assuming attachment_id and attachment_category are registered tags/variables. <?php add_action(‘init’, ‘myplugin_rewrite_rule’); function myplugin_rewrite_rule() { add_rewrite_rule(‘^portfolio/([^/]*)/([^/]*)/?$’, ‘index.php?attachment_id=$matches[1]&attachment_category=matches[2]’, ‘top’); }