Hide category name using mod_rewrite

I solved my problem. All I needed was the WordPress Rewrite API. if( ! function_exists(‘theme_add_rewrite_rules’) ){ function theme_add_rewrite_rules(){ add_rewrite_rule( ‘^blog/([^/]+)/?$’, ‘index.php?name=$matches[1]’, ‘top’ ); } } add_action( ‘init’, ‘theme_add_rewrite_rules’); This solves how wordpress will parse the URL. Half of the problem is how to modify the posts so that the links will not include the /en/ … Read more

What is the best practice workflow for new website overhaul and keeping current SEO ranking? [closed]

If you are only changing the theme or plugins, then it shouldn’t make a difference at all. I see no reason to create new posts and/or pages just because you are changing themes. If you are doing a complete site overhaul, however (you don’t specify), then yes, you should add 301 redirects to your .htaccess … Read more

Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)

The ^ in your rewriterule means the URL must begin with the postname, as in your new structure – so what you’re saying in that second line is, “redirect http://www.example.com/postname to http://www.example.com/postname“. So it’s the ^ that’s throwing things off. If you were previously using URLs like http://www.example.com/categoryname/postname/ then I would suggest instead: RewriteEngine On … Read more