Nginx url rewrite rule problem

It looks like your’e missing the subdirectory part relative to the root setting, try this instead: try_files $uri $uri/ /wordpress/index.php?$args; and you shouldn’t need the q=$uri part. For subdirectories dir1 and dir2, you could wrap the try_files with locate blocks, something like: location /dir1/ { try_files $uri $uri/ /dir1/index.php?$args; #… } location /dir2/ { try_files … Read more

Add more structure tag to permalink?

=> Create a Custom Taxonomy First, we create a custom taxonomy object called rating with the register_taxonomy WordPress function. add_action( ‘init’, ‘my_rating_init’ ); function my_rating_init() { if ( ! is_taxonomy( ‘rating’ ) ) { register_taxonomy( ‘rating’, ‘post’, array( ‘hierarchical’ => FALSE, ‘label’ => __( ‘Rating’ ), ‘public’ => TRUE, ‘show_ui’ => TRUE, ‘query_var’ => ‘rating’, … Read more

Can’t select blog month within archive category

A canonical redirect: The GET parameter m can trigger a canonical redirect when permalinks are used. The canonical redirects are activated with the following hook: add_action(‘template_redirect’, ‘redirect_canonical’); where redirect_canonical() is a rather complicated function. Here’s the skeleton of the part that’s active within this “monster” callback: // … cut … if ( is_404() ) { … Read more

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