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)

0
votes
1answer
39 views

How to get raw unwritten querystring

Without permalink enabled, the urls look like ?p=1 and when permalink is activated it's the postname that appears... question .. isn't this a rewritten version of ?p=1 .. When I use $_GET['p'], ...
1
vote
0answers
69 views

Add .htm extention to a custom taxonomy

I need to add '.htm' to all my urls on a new site - client requires that, as I am converting a old static site into WP. (I use Remove Taxonomy Base Slug to hide the slug of my custom taxonomy "topic" ...
1
vote
1answer
23 views

Why do Wordpress rewriites seem to work differently for posts vs pages?

I am creating some simple rewrites in my functions.php file in my WordPress installation: add_rewrite_rule('product1/faqs/?', 'index.php?name=product1-faqs', 'top'); I've noticed that if you hit ...
1
vote
1answer
47 views

Performance impact of rewriting WordPress URLs

I'm currently rewriting author URLs in WordPress. I've removed the author base slug /author/. Please note I have total control over page slugs so can guarantee there will be no conflicts. I've added ...
1
vote
1answer
50 views

Why did installing wordpress in url root jack up underlying WP sites?

I have a server (w2008 with iis7.5) and domain with a lot of different WP installs. All of the following represent WP installations. x.com/stuff x.com/programs/recent ...
0
votes
1answer
118 views

Adding a date archive to Custom Post Type

Having a little problem with URL rewrites. Trying to get the following URL to display all the sermons in 2014 http://example.com/sermons/2014 Currently it is looking for a sermon called 2014 ...
0
votes
1answer
96 views

Getting add_rewrite_rule and add_rewrite_tag to work

I am new to using add_rewrite_rule and add_rewrite_tag. I am trying to get a very basic example to work, but nothing I do seems to make it work. I want to access this URL (this works when entering ...
1
vote
1answer
1k views

add_rewrite_rule: $matches var not replaced by captured value

I want to access a plugin file (when <a> is clicked) without exposing actual path of the file. I am using the following rewrite rule: add_rewrite_rule( 'continue/([0-9]+)/?$', ...
0
votes
0answers
58 views

How to include in a child page url the parent slug?

I have this page structure: Auto (parent) with child pages: Ford, Audi, Opel, etc. Normally accessing the opel page the url is example.com/auto/opel and I want to obtain ...
3
votes
1answer
856 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
0answers
27 views

Create permalink for my custom URL

I am trying to redirect all requests with "somestring" in the URL to a specific template. That means: http://mysite.local/mysitename/somestring to a specific template in file somefile.php below is my ...
0
votes
1answer
171 views

Taxonomy rewrite pagination 404

I have rewritten my taxonomy url to the name of my posts type 'filter'. Because I have done this, my pagination does not work anymore on the url: http://www.website.com/filter/term-name/ So if I ...
1
vote
1answer
57 views

Custom rewrite_rules - only pass numbers and not alphabetic characters

I'm trying to add a rewrite rule to pass a var to a custom page template. For some weird reason it only excepts numbers in the variables, when I type in characters other then number it directs to ...
4
votes
1answer
219 views

Enforcing canonical URLs with multiple custom post types

I'm working on a project with several custom post types, where one of the post types is naturally (but not actually in the WordPress sense) the 'parent' of the others. For example, say I have a ...
0
votes
0answers
13 views

Wordpress double post name distinguish by term [duplicate]

I am working on a store locating Wordpress template where I have 5 categories for services. In each category I have 500 cities. I have rewritten my url from: http://www.website.com/post-type/post ...
0
votes
1answer
37 views

Adding pretty query parameters

A custom post type named shooting has a field (with ACF) with plenty of images. Those are listed on the single.php of the CPT and one of those images is displayed in full-ish size. I currently have ...
1
vote
1answer
44 views

Rewrite Rules returning wrong data

I have a custom post type called product. It is categorized with the two taxonomies product_category (which is superior) and product_group. I want the permalinks for single products to appear like: ...
0
votes
0answers
49 views

Custom URL in Wordpress with add_rewrite_rules and add_rewrite_endpoints

I have the following URL for a filter functionality that i try to build in wordpress: example.com/offers-type-all-inclusive-from-germany-transportation-airplane.html How can I make the arguments ...
3
votes
2answers
822 views

Rewrite the base-url for single posts

I want to append the URL when viewing a single post. For example when im on a post I want the url to be something like: example.com/mypage/mypage/single-post-article The default url is ...
0
votes
1answer
85 views

htaccess rewrite ignored

I am having some mega frustrations with rewriting things on a local Wordpress install (installed via Bitnami). How does rewriting work in WP? It seems to have some PHP/database system plus a basic ...
0
votes
1answer
68 views

Apache rewrite rules and wordpress problem

I tried to fix my problem by using wordpress rewrite rules but sadly it took me so long I tried this approach. I got it working for one of my simpler problems but now I can't get it to work for my two ...
1
vote
1answer
233 views

Rewrite rule for admin-ajax.php

I went through a lot of posts and googled a lot, but still couldn't get this to work. I'm trying to create a rewrite rule for admin-ajax.php, to achieve the same results shown here: Adding ...
0
votes
0answers
50 views

Custom Rewrite Rule with Sub Folders

I need to create a custom rewrite rule for a WordPress plugin. I have read this topic and came up with a working solution using add_rewrite_rule(). However, after testing the plugin, I realized that ...
0
votes
0answers
80 views

Customized author slugs not working with get_author_posts_url method

I really appreciated the solution for the author rewrite rules here: Change Author Base Slug for different Roles The solution worked for me, however, when I now use the get_author_posts_url($id) ...
0
votes
0answers
69 views

Page displaying but the inspector shows 500 Internal Server error?

I have setup custom urls for a wordpress based site, (not using wordpress pages or posts) but custom urls and including custom page templates. I have several urls working fine except one, page ...
0
votes
1answer
90 views

URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php

I have a custom post type with a URL permalink rewrite that seems to work if it uses /mynews/stories/YYYY/mm/story-name but if I change "mm" to the first 3 letters of the month (eg Jan, Feb, Mar, ...
0
votes
0answers
44 views

get_permalink is getting old rewrite rule

I had some rewrite rules in my functions.php file. I decided that I didn't need them, and removed all rewrite rules and then flushed them. However for some reason when I use get_permalink() the url is ...
0
votes
1answer
41 views

Using 2 URL's for Wordpress

I have a Problem, that my internal company blog should be visible via 2 URL's. One internal and one external. Now I would need to rewrite URL's before content is delivered to the browser. All URL's ...
0
votes
1answer
247 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' ...
1
vote
0answers
60 views

WordPress URL Rewrite for dynamic and customized URL

I'm working on a website in WordPress where I have to show AP News from external Database and not from the WordPress DB. I have created few shortcodes for this, which are working absolutely fine. I ...
0
votes
0answers
226 views

Parent cpt/child custom post type URL permalink relationship

I am attempting to set up a relationship in Wordpress between two custom post types I’ve created and display that relationship within each post type’s permalink URL structure. I have created two ...
0
votes
1answer
26 views

Forward an old url rewrite scheme to a new one?

I have the following url rewrite for custom post type: add_rewrite_rule( 'event/([0-9]+)', 'index.php?post_type=event&p=$matches[1]', 'top' ); Due to a site structure change, I'll ...
0
votes
0answers
29 views

Custom Post Type - Rewrite

I'm making a reader sort of plugin that uses custom post types of 'series' & 'chapter' and need a custom rewrite rule that will allow me to do the following: /series/series_name/chapter/ I'm ...
0
votes
1answer
54 views

URL redirect on updating the post date

I updated the date in the post. But the old URL has already gone viral and people end up in a deadlink as "page not found". I tried using Simple 301 Redirect WordPress Plugin and also Permalink ...
16
votes
8answers
13k views

How do you create a “virtual” page in WordPress

I'm trying to create a custom API endpoint in WordPress, and I need to redirect requests to a virtual page in the root of WordPress to an actual page that ships with my plug-in. So basically, all ...
0
votes
1answer
33 views

I cant access custom taxonomy page listing

I had a issue with a custom taxonomy and a custom post type using the same url. my url i am using for my post type is /news and then i have a taxonomy which i need to have /news/cars I followed this ...
0
votes
3answers
231 views

How to have permalink like domain.com/term/postname?

I'm trying without success to have a URL structure like domain.com/term/postname, but I just get 404 for all non-CPT pages. function add_video_post_type() { $labels = array( 'name' ...
1
vote
0answers
79 views

WP Rewrite the last two parts of the URL

I have found quite a lot of post on the subject of WP rewrite but I can't find the right words to describe this problem. I'm trying to accomplish the following: ...
0
votes
1answer
190 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
1answer
52 views

Rewrite Question

I'm having troubles with creating my rewrite. I've been searching here (and other sites) for an example, but so far, no luck. My testing site is: ...
0
votes
0answers
33 views

Another flat level URL question (no hierarchy)

I read some issues with related topics, but found no answer. I have categories and subcategories on my site.The only reason having hierarchy is because I need to have on the category page all child ...
0
votes
1answer
84 views

Wordpress URL rewrite problem

blog.com/product/somename In the above URL - how do I tell Wordpress that 'product' is a variable and 'somename' is its value. Then how do I extract that value and use it inside a function I'll ...
0
votes
0answers
418 views

Redirect all page templates to index.php and turning Wordpress into a Single Page Application CMS

I’m trying to push the boundaries of Wordpress by turning it into a SPA CMS. Everything works fine until now except for a redirection issue. github angularpresstheme How it works: When I create a ...
0
votes
1answer
23 views

Taxonomy Parent not showing up in address bar

I created a custom taxonomy successfully and assigned the custom post type as well. It is a hierarchical taxonomy and I added terms in the back in a hierarchical way. I added for instance main ...
0
votes
1answer
36 views

How can i fix a 404 error when targeting custom taxonomy slug ?

I have defined my new taxonomy like this $args = array( 'labels' => $labels, 'show_tagcloud' => false, 'hierarchical' => true, 'rewrite' => array( 'slug' => ...
0
votes
1answer
18 views

Re-directing URLs with dates to URLs without dates

When I first started writing entries I decided to include the month and day in the URL's, thinking I might need them. In the end turns out I didn't. I found that I can access a particular entry as ...
0
votes
1answer
11 views

Rewriting URL does not automatically log me in

I've installed my blog at www.mysite.com/blog I want to re-write the URL to take out the blog part so you can access it at www.mysite.com I added a rewrite rule in .htaccess file, but I noticed that ...
4
votes
5answers
4k views

Relative URLs and hide /wp-content/themes/

in my header and other sections I would like to use <script src="/incs/js/script.js"></script> While maintaining the default theme folder structure in server as below ...
0
votes
0answers
75 views

400 Bad Request on Custom Post Type Rewrite

I'm doing some rewriting of the url for a taxonomy and custom post type based on some code I found on here. However on my custom post type archive url I'm getting a 400 Bad Request. I honestly just ...
0
votes
1answer
79 views

Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?

I was developing this WP site using WAMP at work, and now suddenly we're switching it up and putting it on a Windows server (2003). I can tell from the Permalinks Settings page in wp-admin that it ...