Minimal custom permalink structure

Hi *@Bobby Jack:* You’ll have absolutely zero problem given your number of pages and posts. If you were looking at 5000, 10k, 25k pages or more, then start to worry. And the real problem is with categories as the URL base in the current implementation of WordPress’ URL routing (which I hope to see changed … Read more

Creating 301 Redirects for Post, Page, Category and Image URLs?

Hi @CJN:, Your first question, moving the WordPress directory is handled differently from the rest. Moving WordPress from Subdirectory to Root: Go into /wp-config.php and add the following to defines (using your client’s domain instead of example.com of course): define(‘WP_SITEURL’, ‘http://example.com’); define(‘WP_HOME’, WP_SITEURL); 301 Redirects using template_loader and wp_safe_redirect() You can solve most of the … Read more

Rewrite URL – how to do a SEO-friendly Unicode custom URL?

If you write your post titles in Bānglā but set the post slug in English, you can do this: function wpse117090_pre_post_link( $permalink, $post ) { return str_replace( ‘%posttitle%’, sanitize_title( $post->post_title ), $permalink ); } add_filter( ‘pre_post_link’, ‘wpse117090_pre_post_link’, 10, 2 ); Then change your permalink structure to, for example, /%postname%/%posttitle%/ (Please note that the above code … Read more

NoFollow Entire Website

Thought this was a great question so I went digging. In default-filters.php on line 208 there’s add_action(‘wp_head’, ‘noindex’, 1); as of WordPress 4.1. The noindex() function in turn checks to see if you have set blog_public option to 0. If you have, it calls wp_no_robots() which is simply: function wp_no_robots() { echo “<meta name=”robots” content=”noindex,follow” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)