Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"

learn more… | top users | synonyms (1)

6
votes
2answers
2k views

Creating custom permalink structure for languages

I've written a simple multi-language system, whereby clicking on a flag icon sets a one year cookie containing a two letter language code (e.g. nl, de, etc). I hook into the wp action to read the ...
0
votes
1answer
464 views

How to use wp rewrite to hide form action url?

I have a widget that I'm making that builds a multi-step form which retrieves xml data from a third party plugin (http://xmlplugin.com/geoquote.php). While this plugin is available for use already it ...
0
votes
0answers
25 views

Is this possible with Wordpress it's rewriterules

I'm aiming at creating my own plugin but i'm having some troubles figuring out with the rewriting and so on. What i'm trying to build is that my client(s) can created their own "Vehicles". Well that ...
0
votes
1answer
42 views

Rewrite in plugin

I made plugin with shortcode. User put short code in page "bz". Now, plugin is used on page www.sitename.com/bz. I want to get all url content "after" my plugin. So, when user enter ...
0
votes
1answer
32 views

Unable to get /%postname%/ permalinks working, 404 on all links

I have only pages, no posts as links. It's just a mock site at the moment. I used a particular theme, set it to "Post name" permalink, and the links worked fine. But then I changed to another theme ...
0
votes
0answers
18 views

Removing subfolder vs htaccess without causing 404 pages

First of all just want to say spent the last 5 hours reading other stackxchange links and Google before giving in to ask. I'm using a plugin JS Support Ticket that adds a slug to the URL in this ...
0
votes
3answers
494 views

add_rewrite_rule not working for me

I have the following rewrite tags defined: // ADD REWRITE TAG FOR 'VEHICLE MAKES' add_rewrite_tag('%make%','([^&]+)'); // ADD REWRITE TAG FOR 'BODY STYLES' ...
0
votes
1answer
642 views

Duplicate Custom Post Type and Taxonomy Slug

I've seen a few questions that are very similar, but I haven't been able to get an exact answer, so I'm going to explain my situation here. Quite simply, I need the following url structure: ...
0
votes
0answers
25 views

CPT url rewriting : regular posts return 404 error

I have a WP website where a created a CPT named product, which has several custom fields, including a category field. This "category" is a custom taxonomy that can take several values, let's say : ...
0
votes
0answers
11 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
1answer
520 views

Change custom post type slug from plugin options

I'd like to give users the option to change a custom post type slug in my plugin. Using this answer, I'm able to hardcode it into a function: Redeclare/Change Slug of a Plugin's Custom Post Type ...
0
votes
0answers
14 views

Multiple Themes Rewrite

I have installed a plugin called Multiple Themes, formely jonradio Multiple Themes. My website has 3 themes which represent 3 different locations (A, B and C). A = primary theme. All themes share ...
1
vote
1answer
29 views

How do I only allow downloads that are referred from my domain?

I want to restrict downloads so that users are only able to access the /uploads folder if they click a link from my domain - i.e. they couldn't access any file in `/uploads' by pasting it into the ...
1
vote
1answer
15 views

Wordpress add_rewrite_rule() cannot visit lower url levels

I have a post type called "shop" and added query variables and a rewrite rule. // Adds query vars for shop post type function gtp_add_shop_query_vars( $vars ) { $vars[] = 'shop-category'; ...
12
votes
2answers
28k views

Custom Post Type URL Rewriting?

I setup a custom post type for my portfolio projects. The main URL for this is located at /projects/ Now I've also setup my blog posts permalink to /articles/*/ for the permalink structure. This ...
2
votes
1answer
669 views

WP Login forms action URLs displayed as pretty URLs in browser (ex with Restore Password)

I would like to use the WP native login/register/restore password/.. functionality, but display pretty URLs instead of wp-login.php I've been looking at the core code and noticed that most login ...
3
votes
2answers
633 views

How to change ?lang=cn into /cn/

I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something ...
0
votes
0answers
33 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
34 views

Adding a rewrite rule to page that has no fixed variables and pagination

Ive set up a page that users can search posts by tags, four categories, for example. By Room - By Style - By Colour - By Feature, each has an undefined number of sub categories, depending on how many ...
0
votes
0answers
24 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. ...
3
votes
2answers
585 views

How to stop wordpress to make the default query?

My goal is a redirect to a custom template based on some new rewrite rule, but without having wordpress to make unusefull queries. my code: function add_rewrite_rules() { add_rewrite_rule( ...
0
votes
1answer
22 views

get_post_permalink() and custom permalink rewriting

I've been working on a CPT named "product" that has custom permalinks. Here is a part of this CPT : 'rewrite' => array( 'slug' => 'catalog/%product-cat%', 'with_front' ...
0
votes
0answers
18 views

How to Generate a Double Taxonomy URL and Page Template

I'm working on a project with the following custom user taxonomies: Especialidad (which contains several "crafts"). Región (which contains the "cities"). Both of them have several crafts/cities ...
0
votes
5answers
798 views

Exclude subcategories from the url

We have a site with categories and subcategories. If anybody navigates to a content belongs to a subcategory the url will have the following form: domain/main-category/sub-category/mycontent/ But we ...
0
votes
2answers
854 views

Later change of taxonomy slug base not changing permalink

When defining a taxonomy I successfully set the slug base for it as well, all via functions.php. However, any change on the slug’s base (via editing functions.php again) is being recognised, i.e. it ...
0
votes
1answer
22 views

Custom taxonomy returns 404

I'm getting a 404 page when I visit my custom taxonomy page. Custom taxonomy is called 'manufacturer'. I also have a cpt called 'product'. EDIT 1: It has something to do with the cpt rewrite. If I ...
0
votes
1answer
15 views

How to reset WP page url with deleting the variables

In my unsubscribe script there is this command: http://www.domain.nl/email-acties/?email=info@domain.nl after the unsubscribe I like to change the url into http://www.domain.nl/email-acties/ But ...
0
votes
1answer
17 views

How can I get .html URL suffixes in permalinks?

I have never seen that the page ending up in wordpress with ".html ending", but some how i also feels that this page/blog is build upon wordpress - ...
1
vote
1answer
492 views

Add a query string to ALL links on site

Our client would like to embed his site into an iframe in their software backend. I get a query string on the first link but need to make sure that string persists across URLs for all links and ...
1
vote
1answer
30 views

Multiple endpoints in one URL

I am trying to add multiple endpoints in one url like: http://localhost:1000/manage-lead/lead_id/1000/product_id/123455 But this way the query var lead_id is equal to 1000/product/123455 and not ...
-1
votes
0answers
13 views

Making a multi-language website using Wordpress engine [duplicate]

This is the first time I have to do it with Wordpress and I got a bit stuck. Even if I abstract away from realization, I still have to deal with the next problem. All pages of the website should have ...
1
vote
0answers
80 views

how to use two permalinks for one custom post type

I have a custom post type "article" where posts have a permalink structure (www.mysite.com/article/post-name). I need each post in it to have two different templates according to its permalinks: the ...
0
votes
1answer
13 views

Custom Post Type rewrite url to /category/pagetitle [duplicate]

I know this questions has been asked a lot, but after working on it for 6 hours straight I can not find a good solutions anywhere. My site has a Custom Post Type and taxonomy. My taxonomy are for ...
2
votes
2answers
3k views

Passing parameters to a custom page template using clean urls

I am now passing parameters to a custom template in the following format www.example.com/?pageid=12&rid=24&title=this-is-the-title I have created two tables . So I need to fetch data and ...
3
votes
1answer
482 views

How to remove admin.php?page= from admin using .htaccess?

I've been looking for this everywhere, and can't find it - so I apologize if it is a duplicate question. I can't believe it hasn't been asked before... So please direct me if it has :) I'm looking ...
0
votes
0answers
20 views

.htaccess rewrite into Wordpress not hiding URL

Lets say I want to rewrite URLs from one subdirectory to another (my actual use case is a bit more complicated but this is a simpler example): <IfModule mod_rewrite.c> RewriteEngine on ...
0
votes
1answer
19 views

Change permalink for default archive - yearly

I want to change the structure of yearly archive URL of default post type post. As we know that default URL structure is like: Default: http://wwww.domain.com/2005 but want them rewritten, so end ...
0
votes
0answers
8 views

Re-Write Rules - Target everything other than pages

Is it possible to target all wordpress content except pages? I would like my site to be /area except the pages that i make including the homepage?
1
vote
1answer
676 views

Custom Post Types, URL rewrite on multiple CPTs

Re: Custom post types, taxonomies, and permalinks by @TheDeadMechanic The solution above works perfectly, and rewrite is great, but can you advise on how to rewrite for more than one custom post type ...
0
votes
3answers
854 views

Use subdomain for certain urls

I have the following rules in my .htaccess file on a WordPress (single installation): # REWRITE FORUMS DOMAIN TO FOLDER RewriteCond %{HTTP_HOST} ^forums\.example\.com$ RewriteRule !^forums/? ...
0
votes
1answer
431 views

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

I've been trying to find a solution for days now and I am absolutely stumped. I am putting together a website to list my domain portfolio for sale and I'm using a plugin I purchased to lists the ...
1
vote
2answers
52 views

Permalink structure CPT with custom taxonomy fails

I'm getting quite frustrated setting up the correct URL structure for a CPT with a custom taxonomy. I have a CPT called 'courses' with a custom taxonomy called 'course type'. The url structure ...
0
votes
1answer
51 views

Using Wordpress with Apache behind an nginx reverse proxy

I hope you can help me solving my issue. I am running ngninx on a dedicated Server as a reverse proxy. My WordPress Application is on another VM, which is running apache2 as a Websever. Everything is ...
0
votes
1answer
48 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
0answers
17 views

how to refresh woocommerce products

i have a bunch of products in woocommerce that i had to export and fix and then re-import. Everything seemed to go smoothly except for 1 thing. Each of the prouducts had a Advanced custom field ...
0
votes
1answer
25 views

Nginx WordPress and another Web app URL structure

I have got WordPress installed on my root example.com/ Website. Also I have another Web application that on example.com/my-app/ which has got ugly links like example.com/my-app/file.php?arg=value to ...
1
vote
1answer
44 views

Replace term archives with static pages

I need to make different pages for different Woocommerce product categories with each having different look and functionality. Defining templates for each term archive would make it difficult for my ...
0
votes
1answer
680 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway ...
3
votes
1answer
2k views

add_query_vars and add_rewrite_rules

I am looking for some clarity on what add_rewrite_rules does. If I type in, or submit variables from a form, is it supposed to change the query variables to the pretty url? Currently when I type in ...
0
votes
1answer
558 views

How to make wordpress use www.example.com/blog/wp-includes/ instead of www.example.com/wp-includes/?

I have WordPress at address http://www.example.com/blog/, now I want it to be accessible as http://www.example.com/ without moving wordpress to root directory. I have made appropriate .htaccess ...