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

How could I change my Permalink from blog to custom structure? [closed]

You don’t do that with your permalinks. You can do what you want in WordPress Settings. Go to your WordPress dashboard, 2. Click “Settings”, 3. Click General. 4. In the “Site Address (URL)” Box remove the “blog” part like this –> “http://site.myurl.com/ NOTE: DON’T CHANGE THE WORDPRESS ADDRESS URL!!! Only change the Site Address Here … 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