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

0
votes
0answers
19 views

permalink with partial ajax site

I'm trying to load a page with from a URL with an ajax call. This is what i have : a home page with the url / -> list all movies & events a page called cinema with the url /cinema -> list all ...
0
votes
0answers
9 views

Rewrite Rule for Multistep Estimate Form

I want to be able to create a few rewrite rules and utilize some templates that I've created, but I don't want to be limited by having to create the pages within the WordPress admin ... essentially, I ...
0
votes
1answer
29 views

Permalinks for a custom post type - with a page template (custom query) and taxonomy archive

I'm having trouble getting my permalinks working with a specific custom post type setup. Here's the code for the custom post type: function jc_attactions() { $labels = array( 'name' => '...
0
votes
1answer
24 views

Rewrite /keyword1+keyword2.html to search page | .htaccess

I am facing trouble redirecting the keywords to search page in a wordpress 4.4 setup. What I am trying achieve is to rewrite/redirect www.site.com/**search+keyword.html*** to www.site.com/**?s=...
0
votes
0answers
16 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
47 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
47 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
16 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/([^/]*)/([^/]*)/?', 'index.php?state=$matches[1]&city=$matches[2]',...
0
votes
0answers
17 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 somesite.com/product/airconditioner/voltas/...
0
votes
1answer
18 views

Wordpress URL rewrite after changing web from Joomla

There is a website which was previously run on Joomla. URL structure of Joomla links was index.php/site , index.php/another-site. After changing to WordPress no page is not accessible from Google, I ...
0
votes
0answers
13 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
29 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. xyz....
0
votes
1answer
51 views

/page/ is not working with a custom permalink structure (WooCommerce)

I am running WooCommerce and FacetWP on a WP 4.5 install. I have set the permalink structure of the "Products" to the following, the custom taxonomy is a location based taxonomy. /accommodation/%...
0
votes
0answers
39 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
1answer
53 views

Custom URL rewrite with add_rewrite_rule

I am trying to create the SEO friendly URL: http:///foto/linse2-at/linse2-at-schloss-altenhof/2618 for this one: http:///?fotograf=linse2-at?gallery=linse2-at-schloss-altenhof&img=2618 For my ...
0
votes
0answers
73 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
24 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
27 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
1answer
20 views

how to use two permalinks for one custom post type based on categories

I am trying to get 2 different permalink for one custom post type, based on the solution given there. It is working for articles, but I can't get it work for my "film" custom post type. Here is my ...
0
votes
1answer
79 views

Wordpress custom post type rewrite rule matches all pages returning 404

I've created a custom post type with a rewrite to use the grandparent relationship as the URL like so: function cpt_child(){ $args = array( //code 'rewrite' => array( 'slug' => '%...
0
votes
1answer
54 views

Rewrite CPT child page URL to support query var

I am having some issues with rewrite rules. I have a URL like this: http://www.domain.com/post-type/parent-page/child-page/section-id Which I want to treat via query vars like http://www.domain.com/...
0
votes
0answers
30 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
81 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
1answer
18 views

page not found for example.com/custom-post-name

i have created custom post type: jobs custom taxonomy : jobs_division I wanted url like Custom permalink structure: /%custom-post-type%/%custom-taxonomy%/%post-name%/ I have registered custom ...
0
votes
0answers
18 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
1answer
46 views

Multiple query vars sorting combination and url rewrite

I have a custom search page for a custom post type ('program'). There are 4 parameters that can be set up for this search: 'word_search', 'archived', 'category' and 'operating_system'. We can search ...
0
votes
1answer
51 views

Add custom query vars to pretty permalinks

I am creating a wordpress plugin where i have some custom query strings appended with the urls to achieve the desired functionality.I require pretty permalinks like post name in the wordress settings. ...
0
votes
0answers
35 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
30 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
1answer
17 views

Rewrite Rule added but showing 404 rather than specified page

I have the following rewrite rule function coaching_apply_rule() { add_rewrite_rule('^coaching/apply/', 'index.php?page_id=5156', 'top'); } add_action('init', 'coaching_apply_rule'); Reason for ...
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; } add_action(...
0
votes
0answers
86 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
24 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
1answer
420 views

Custom rewrite rule for hierarchical custom post type

Working on a client site I've encounter my worst enemy... WP URL rewrite :(. I actually can't figure it out and after many days trying and searching, I can't make it work. What I'm trying to get is ...
0
votes
0answers
39 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
98 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 posts....
0
votes
0answers
73 views

Custom permalinks for search with extra parameters

I am trying to change default WordPress permalinks for search because I added few parameters to search.php the url now is like: https://www.example.com/wordpress?parameter1=test&parameter2=text&...
0
votes
0answers
49 views

RewriteRule to hide Wordpress folder from URL in some cases. How to?

I'm trying to obtain hide wp-content folder from url in this way, to make it easy for visitors: permalink: mysite.com/wp/this-page-en required address: mysite.com/en/this-page The www folder ...
0
votes
0answers
48 views

How to correctly translate custom posts url rewrites?

I've got a custom post type 'product'. I've just added the rewrite option: 'rewrite' => array('slug'=>__('products','jungle'),'with_front'=> false) Fine. But I want mydomain.com/products ...
0
votes
1answer
37 views

How to change URL structure for pagination pages?

Hi I'm new to WordPress hence if my question was simple or stupid I'm sorry, but please someone tell me how to change URL for pagination pages. Currently I'm having URL for pagination pages as: www....
0
votes
2answers
97 views

add_rewrite_rule() driving me crazy, rewrite not working when analyzer says it should

I have a special situation and need some help achieving the final step. Background: When I access mydomain.com/category/postname, I get the post as expected. When I access mydomain.com/category/...
0
votes
1answer
34 views

Using rewrite rule to access a view of a plugin from home page

I'm creating a plugin that has a view in front-end and i have a link in home page to access it: /wp-content/plugins/wp-test-plugin/public/partials/wp-test-plugin-public-display.php. But I want a ...
0
votes
0answers
22 views

WordPress removing query strings

I run custom scripts and plugins with GET parameters/query strings. Recently, when I try to access a page with query strings, something happens and the query string gets dropped. This, however only ...
0
votes
0answers
30 views

Change URL to split page with nextpage

I would like to change the URL to the second page of <!--nextpage--> split pages. I have a number of pages like /book/bookname/ that were split into 2 pages, and page 2 is called /book/bookname/...
0
votes
1answer
119 views

$_POST empty in using new php file added to theme

I am using a theme which handles form data with jquery (a handler function defined).I have added a new php file to theme (using it in as template in a wordpress page, also registered with rewrite ...
0
votes
1answer
33 views

Rewrite URL for a specific taxonomy [duplicate]

I registered a post type of 'product', and also registered a taxonomy 'poruct-cats' for this post type. When I want to access to product-cats it seems like below: example.com/poruct-cats/a-product-...