Redirects after permalink change

It depends on your server. If you’re on an Apache server, you could use the .htaccess file. If you’re on NGINX, there is a .conf file. Your web host may (or may not) be able to help you with this. Or, you could use a plugin. There are many redirection plugins available – you may … Read more

WordPress Pages Redirecting to Root with WordPress Multisite (Sub-Directory)

Check your rewrites to make sure it follow this if (!-e $request_filename) { rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) $1 last; rewrite ^/[_0-9a-zA-Z-]+.*(/wp-admin/.*\.php)$ $1 last; rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ $1 last; } not this if (!-e $request_filename) { rewrite /wp-admin$ $scheme://$host$request_uri/ permanent; rewrite ^(/[^/]+)?(/wp-.*) $2 last; rewrite ^(/[^/]+)?(/.*\.php) $2 last; }

Custom permalink structure for posts in specific category

This code works good for me: add_filter( ‘post_link’, ‘custom_permalink’, ‘author_link’, 10, 3 ); function custom_permalink( $permalink, $post, $leavename ) { // Get the category for the post $category = get_the_category($post->ID); if ( !empty($category) && $category[0]->cat_name == “Tips” ) { $cat_name = strtolower($category[0]->cat_name); $authordata = get_userdata( $post->post_author ); $author = $authordata->user_nicename; $permalink = trailingslashit( home_url(“https://wordpress.stackexchange.com/”. $cat_name … Read more

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