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