changing permalink gives 404 error for old links

Well, if your /%postname%/ part stays the same, .htaccess redirection can help you pointing old urls to the new ones like this: RewriteEngine On RewriteRule ^$ /my-articles [R=301,L] Put this into your .htaccess file and it should redirect http://your.tld/my-article to http://your.tld/my-articles/my-article. Beware that this will redirect everything, not only some post types or sth. like … Read more

permalink to single page

It was pretty simple. after going through the wordpress codex, just had to change the second line on single.php $categorySlugName = single_cat_title(true); TO $cateogrySlugName = get_category_by_slug($slug);

Where is wordpress redirecting wp-admin/admin/dashboard to wp-admin and how to turn it off

you can remove this functionality by adding this code in a plugin or theme remove_action( ‘template_redirect’, ‘wp_redirect_admin_locations’, 1000 ); This will remove all of dashboar, login, admin so if you will want some of them to still be there you will have to write your own replacement function to wp_redirect_admin_locations and hook it after you … Read more

Page permalink ending in “-2”

I’m guessing that you have do have duplicates – duplicate permalinks, not necessarily duplicate titles per se. Have you trashed some posts with duplicate permalinks? Until you empty the WP trash, WP still considers their slugs in use. Also, what about Custom Post Types?

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