Rewrite rules modify a web URL's appearance. This modification is called URL rewriting. Rewritten URLs (sometimes known as short, fancy URLs, search engine friendly - SEF URLs, or slugs) are used to provide shorter and more relevant-looking links to web pages. The technique adds a layer of ...

learn more… | top users | synonyms

2
votes
0answers
231 views

How to Combine Two Custom Post Types into Single Permalink Structure

The website uses - A) A hierarcical Custom Post Type "Destination" to support the following structure, so each tier of the hierarchy could have its own unique destination guide: Territory - ...
2
votes
0answers
148 views

web.config conflict on IIS

folder structure docroot |- wordpress |- web.config |- wp-content |- japi |- index.php \- web.config ... ... As you can see there are 2 web.config ...
2
votes
0answers
91 views

Page Attachment Permalink Structure based on Menu Order?

I've been on a quest for the past couple of days reading up on Rewrite in WordPress but still can't seem to figure out how to accomplish this. When using pretty links in WordPress, media attached to ...
1
vote
0answers
21 views

how to change permalinks format for pagination?

Sorry if my question was basic or stupid. Please help me how to do this in wordpress, i m new to wordpress. I have permalinks for pagination page like this www.website.com/customtaxonomy.html/1 ...
1
vote
0answers
123 views

Multisite theme path rewrite using .htaccess

I'm trying to rewrite the theme path for multiple domains (wordpresss multisite) using separate themes, this is my current .htaccess file, this is allowing each site to use seperate CSS files but not ...
1
vote
0answers
206 views

Add hierarchical taxonomy to permalink for custom post type

I've found various questions about this issue, and I still can't get this to work. I have a post type called "product" and a taxonomy called "type". I'd like the URL for a single product post to be: ...
1
vote
0answers
403 views

Wordpress Deadlock Error

I see more of this error these days in error_log. I see that someone asked this question here a year ago but no solution. Please advise what is causing this issue. Already, tried deactivating some ...
1
vote
0answers
40 views

rewrite taxonomy-{taxonomy}-{term}.php terms

I try to figure out a rewrite problem, that is a somewhat over my head, so i ask here to find out what i can do. I use this two solutions from Jeff 1 and Milo 2, to get a full-path url for my custom ...
1
vote
0answers
255 views

Pretty permalinks IIS gives 404 on posts/pages

I'm trying to get Wordpress to work under IIS and I've gotten stuck on custom permalinks. If I use the standard ugly permalinks, All standard features works fine, but plugins like Buddypress does ...
1
vote
0answers
125 views

How to get list of taxonomy slugs ordered parents>childs?

Is there an existing function in WordPress to generate a list of taxonomy slugs ordered by parents > childs > subchilds in an array? I need to generate a URL structure for my custom post type in ...
1
vote
0answers
180 views

Rewrite rule for path of favicon.ico ( Add_rewrite_rule function possible ? )

Hi Wordpress developers ! I'm wondering, is it possible to make by PHP and power of Wordpress following: If user access http://localhost/favicon.ico, is it possible to make show user data from ...
1
vote
0answers
688 views

remove base slug from hierarchical custom post type

I've tried various methods posted here and on stackoverflow and none of them work unfortunately. My CPT is "service_locations" and by default has this structure for main pages: ...
1
vote
0answers
176 views

Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)

I have a custom post type named "tours" and a custom taxonomy named "tour_type". "tour-type" taxonomy is hierarchical. In "tour-type" taxonomy, parent terms are limited to "eco-tours", "daily-tours", ...
1
vote
0answers
533 views

Multisite sub-directories IIS 7.5 change media/uploads location

I am running WP 3.8.1 Multisite. Sub-directories is configured. I have 10 sub-directory sites and 1 primary site. WordPress is running on a Windows 2008 R2 datacenter 64bit server with IIS 7.5. I have ...
1
vote
0answers
494 views

Pretty URLs and custom post types

I've read the posts on WP SA on rewrites and custom post types, but I can't figure out why my search for 2 different post types isn't working. I'd like my URLS to become ...
1
vote
0answers
39 views

Specific routing for CPT

I'm developing site for art gallery. A have Artist CPT (internal name artsin_artist) which is defined in my functions.php like following: register_post_type('artsin_artist', array( 'labels' => ...
1
vote
0answers
136 views

Rewrites with hierarchical taxonomies in permalink

I am attempting to create a hierarchical list of products in WordPress 3.5.1. For example if the custom post type product was in the custom taxonomy Outdoor > Garden Tools > Hoses, these would ...
1
vote
0answers
247 views

Help with multisite redirect issues using Cherokee OR solid nginx config?

A little background: We've decided to abandon Apache because it can't keep up with the demand we're putting on it. We have a cron script that will create a new post about once every 3 or 4 seconds ...
1
vote
0answers
139 views

404 (category, pages, archives) when using custom rewrite rules

I'm using www.domain.com/%POSTNAME%/CAR permalink structure (CAR is the variable i need to extract. After adding the code to the functions.php the other wordpress url's stopped working (category, ...
1
vote
0answers
111 views

URL Rewrite with Custom Variables

I right now have a custom post type with a url structure like: example.com/videos/taxonomyname/ I have a custom variable that I am detecting in the template file to switch layout views which works ...
1
vote
0answers
37 views

Permalinks only for posts

I would like to use wordpress permalinks but only for posts. Is there any way to do that? I don't care about seo, my website is about niche subject so it already has first position in google. Also ...
1
vote
0answers
174 views

Move wp-content htacess

I notice that when I rename the wp-content and plugins folders http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content my multisite network htacess still references wp-content: see this ...
1
vote
0answers
93 views

Getting 404 error on my wp rewrite error

The code I'm using to rewrite urls with query vars: function add_query_vars($aVars) { $aVars[] = "city"; $aVars[] = "address"; $aVars[] = "pg"; return $aVars; } // hook add_query_vars ...
1
vote
0answers
168 views

Evaluating a external rewrite rule before internal wordpress rewrite rule

I am been plucking out my hairs since last few days trying to solve this problem: I want to convert my urls from format http://example.com/prodsearch/category/tag1-tag2-tag3-tag4 to ...
1
vote
0answers
2k views

How to change “attachment_id” in attachment permarlink?

I changed attachment permalink by add_filter('attachment_link','my_media_url'); from http://domain.com/?attachment_id=123 to: http://domain.com/?media=123 The change is successful. But, with the ...
0
votes
0answers
13 views

I Need Delete Old Rewrite Rules

First, I created a custom category, named: (reviews) I created a classification under this category, the name is: (posts), and (pages) Now, its URL address is: ([abc.com/reviews/posts/page/1] ...
0
votes
0answers
34 views

Rewrite URL/Slug for a Page using a particular page template using Advanced Custom Fields Post Object

Edited 5/20 -- Rewrote to specify my question: I have a Custom Post Type represented as mysite.com/projects/{project-name}/. I'm trying to set up a rewrite rule for Pages that use a particular page ...
0
votes
0answers
15 views

Having to flush_rewrite_rules() everytime I make custom post type

I keep running into this issue where every time I make a new custom post type, I have to flush_rewrite_rules() for it to have a single.php or I get 404 when I go to view the post. Anyone have an idea ...
0
votes
0answers
41 views

Inject a user specific ID into first URL segment

I've got a site that deals with affiliates and needs to inject an affiliate ID directly into the URL string. So for instance if an affiliate's ID is 12345, I would like to inject 12345 into the first ...
0
votes
0answers
14 views

Partial matching issues in rewrites api

I'm working on a site that has a lot of custom rewrites. We started with: function em_rewrite() { add_rewrite_rule( '^state/([^/]*)/([^/]*)/?', ...
0
votes
0answers
15 views

Rewrite Rules in Custom taxanomy and custom post type

Problem in hand : I have custom categories in wordpress named "Product Categories" with custom post type "Products". i want to change urls from ...
0
votes
0answers
12 views

Custom rewrite rules on custom posttype

I've got a problem presented to me by a client which I can't seem to fix. They have a Wordpress website with a custom posttype 'projects' This custom posttype has a custom taxonomy 'categories' What ...
0
votes
0answers
27 views

How to allow specific URL

I need a little bit help on WordPress URL. In Wordpress Backend, I have One page and the page slug is: listing-detail When I try below URL into the browser it's working as per my expectation. ...
0
votes
0answers
36 views

Page URL with variable (URL rewrite)

I'm new to this Wordpress & right now I tried to rewrite a specific page that have variable with it. First of all let me explain. I have a page that will retrieve all loggedin user info in a page ...
0
votes
0answers
44 views

WP add_rewrite_endpoint - custom post types destroys permalink URL match

I'm trying to implement AMP-versions to Wordpress posts with a custom plugin. The problem I'm having is that we use a bunch of different post types. They all have their own permalink structure. For ...
0
votes
0answers
16 views

Problem with Author page redirect

When trying to access the author's page (i.e. example.com/author/john) I am redirected to Woocommerce's shop page, however, if john is an admin, then I am redirected to author.php page correctly... ...
0
votes
0answers
26 views

Multiple Post Types and Multiple Taxonomies Issues

I have multiple CPTs that all have multiple taxonomies. The problem I am running into is some of the taxonomies are the same between the different CPTs. This ends up resulting the in the same URLs. ...
0
votes
0answers
27 views

How do I generate 301 redirect?

I am working on the function which is supposed to add 301 redirect when the permalink gets changed (for example, when we change categories structure). The idea behind is to keep the old URL in a meta ...
0
votes
0answers
50 views

Dynamically Change Base Permalink Prefix For Custom Taxonomies (Categories)

I'd like to change/modify the permalink structure for the standard and custom post-types and taxonomies, such that the base being prefixed to the permalink dynamically changes for each post-type and ...
0
votes
0answers
17 views

Help with custom posts being rewritten to standard posts

I am having a bit of an issue with custom posts. My setup is WP4.4 with the following plugins: Yoast SEO Toolset Types Custom Post Type Permalinks I am rebuilding our company motorcycle website ...
0
votes
0answers
26 views

Custom Permalinks for posts with custom taxonomy

I have kind of a unique problem with permalinks and a custom taxonomy that I can't seem to find the answer to. I have created a custom taxonomy called "content_type" which is attached to the "posts" ...
0
votes
0answers
15 views

The Loop doesn't work when using RewriteRule

I am using .htaccess RewriteRule on my page. When user goes to /news RewriteRule actually loads /?nav=news On that page, I use The Wordpress Loop to show recent posts if (have_posts()) { ...
0
votes
0answers
31 views

Modify custom taxonomy permalink to allow 2 additional parameters?

I have a custom post and taxonomy set up. The only section I have in my website are taxonomy archives. The archive page lists the posts from the current taxonomy term. Each post is viewed in a modal, ...
0
votes
0answers
23 views

flush_rewrite_rules with wp_cron

I'm trying to build myself a plugin for remote viewing data of all my WordPress installations in one overview. Therefore I'm generating a list using xmlrpc to remote connect to all the WordPress ...
0
votes
0answers
27 views

Update broke rewrite rule

With the update from 4.4 to 4.4.1 somehow suddenly my rewrites aren't working anymore. I've written a plugin to show attachments on a page (the landing page specifically) so people that come to the ...
0
votes
0answers
15 views

rewrite rule stopped working

I have added a custom rewrite rule + custom query var <?php add_filter('query_vars', 'add_query_vars'); function add_query_vars($aVars) { $aVars[] = "activePage"; return $aVars; } ...
0
votes
0answers
74 views

Canonical url differs from custom post type archive URLs

I cannot figure out how to control canonical URL for custom post type archive pages. Here's my excerpt of CPT setting for soccer_club for example. This CPT supports default category taxonomy. $args ...
0
votes
0answers
18 views

Any way to make Apache's internal redirect work?

What I really want to do is to make URLs like http://localhost/bmicalc/bmi24.57 to redirect to http://localhost/bmicalc/index.php?pagename=bmi&result=24.57 without changing the URL in the ...
0
votes
0answers
27 views

Permalink structure between 2 custom post types and a taxonomy

Ok here is the scenario. I have a custom post type called "Communities", a custom post type called "Community Posts" and a taxonomy under "Community Posts" called "Communities". The idea here is that ...
0
votes
0answers
79 views

Permalink structure not working with Custom Taxonomy (URL like ./taxonomy/category/postname)

I want to publish and organize issues with WordPress. The magazine is structured into issues (for example Magazine n°23), categories (always the same categories regardless the issue) and finally ...