Skip to content
IT Nursery
  • Home
  • Programming
    • PHP
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress

url-rewriting

How to properly rewrite url by custom var

by IT Nursery

I’ve been trying to rewrite a shop uri, and what I have now is this code: add_filter(‘rewrite_rules_array’,’wp_insertMyRewriteRules’); add_filter(‘query_vars’,’wp_insertMyRewriteQueryVars’); add_filter(‘wp_loaded’,’flushRules’); // Remember to flush_rules() … Read more

Tags regex, rewrite-rules, url-rewriting

How to improve WordPress security by hiding non public facing files?

by IT Nursery

e.g. curl -I http://ma.tt/blog/wp-config.php 200 OK The wp-config.php is not public facing file, since it currently just return blank page, so why not … Read more

Tags permalinks, security, url-rewriting

Combine Multiple Categories Into One URL Slug

by IT Nursery

I have a WordPress website with 20+ categories. To make it easier to navigate I want to decrease the categories, but at the … Read more

Tags categories, permalinks, url-rewriting

WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)

by IT Nursery

I’ve encountered a strange error while developing a custom theme. After finishing editing the template for a custom post type single view, I … Read more

Tags permalinks, rewrite-rules, template-hierarchy, templates, url-rewriting

Possible to change the slug of default post type?

by IT Nursery

I have custom post types on my wordpress site and I’ve set the slugs to say “/blog/{post_type}/{post_title}”. I’m using the default post type … Read more

Tags custom-post-types, url-rewriting

When is it a good idea to build a permalink structure from scratch?

by IT Nursery

Is it a good idea to design a permalink structure from scratch? The requirements to the structure are as follows: Pages to be … Read more

Tags permalinks, rewrite-rules, url-rewriting

add_rewrite_rule() to route to file other than index.php

by IT Nursery

add_rewrite_rule( ‘^invite/([^/]+)’, ‘index.php?pagename=invite&iid=$matches[1]’, ‘top’ ); The “internal” rewrite rule above will route traffic through index.php using the pagename argument (which necessitates having a … Read more

Tags rewrite-rules, url-rewriting

Remove Author Slug & Replace With Username

by IT Nursery

I reviewed all related questions but none tackle this exactly so I’m posting the question in hopes the pro’s know how to handle … Read more

Tags customization, multi-author, slug, url-rewriting

Remove Query String from URL on Redirect – Redirection Plugin

by IT Nursery

I am trying to remove the query string from my URLs when I redirect them but it is preserving them. I can’t get … Read more

Tags query-string, redirect, url-rewriting

Is it possible to rewrite URLs in this situation?

by IT Nursery

I am using a fantastic plugin called Query Multiple Taxonomies which provides a widget to “drill down” by category / tag and other … Read more

Tags url-rewriting
Post navigation
Older posts
Page1 Page2 … Page45 Next →

Important Tag

.net admin ajax android arrays bash c categories comments CSS custom-field custom-post-types custom-taxonomy customization database filters functions git hooks HTML images ios java javascript jQuery menus multisite MySQL node.js permalinks php plugin-development plugins posts python Shortcode sql string theme-development themes uploads users woocommerce-offtopic wp-admin wp-query

Recent Posts

  • INSTALL_FAILED_DUPLICATE_PERMISSION… C2D_MESSAGE
  • How to sort by meta value?
  • WPF text Wrap vs WrapWithOverflow
  • How to retrieve the list of all posts ever published via the feed?
  • how to use javascript Object.defineProperty

android c categories CSS custom-post-types custom-taxonomy customization database functions git HTML images java javascript jQuery multisite MySQL php plugin-development plugins posts python string theme-development wp-query

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Content from: Stack Exchange

Important Link

  • About
  • Privacy Policy

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery