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)

1
vote
1answer
108 views

Add “page-a” slug to category link if user visit category link from “page-a”

I have Area pages like below: http://www.example.com/area1 http://www.example.com/area2 On each area page common wp menus are displaying categories. To illustrate: Menu Items: -> ...
0
votes
2answers
1k views

add_rewrite_rule and template redirect not working

I have the following pairs: add_rewrite_rule('^questions/ask/?','index.php?pagename=ask','top'); if(is_page('ask')){ $tname = 'add-question.php'; ...
1
vote
2answers
65 views

Rewrite URL to remap WordPress Permalink

I'm moving my WordPress site to a new host, and in the process I want to make a one time change to the Permalinks. I want to rewrite the URLs from /2015/11/sample-post/ to /sample-post/ but how can I ...
0
votes
0answers
10 views

Modify a rewrite rule for yy/mm and yy/mm/dd

I have a rewrite rule that I used to remap URLs from /yyyy/mm/post successfully but now trying to modify that to redirect using the pattern match of /yyyy/mm/dd/post Here is the rewrite rule I am ...
0
votes
1answer
27 views

Url wordpress rewrite

In wordpress i have created a custom page called mail.php inside a folder form_support, my original url is http://exemple.com/form_support/mail.php i created htaccess file with rewriting rule : # ...
0
votes
0answers
15 views

Add custom term to custom post type URL

I need a URL structure specifically for a custom post type. For example http://mybooks.com/[genre]/[book title] Where [genre] is the custom taxonomy term and [book title] is the title of the custom ...
0
votes
2answers
67 views

ubuntu + nginx - everything works except “rewrite url structure” [closed]

I'm on ubuntu vps running nginx Running w3 total cache on wordpress. Everything works fine except for when i enable "rewrite url structure", and it breaks, 404 probably to the minified files. How ...
0
votes
0answers
27 views

Force Wordpress to only match URL in category

I'm having a problem where if I have the WP url index.php?post_type=custom_post_type&custom_taxonomy=xyz&custom_post_type=post-slug (replacing all variables, of course) it will not actually ...
1
vote
1answer
34 views

Enpoint Not Found in Rewrite Tag Permalink

I'm trying to make an XML feed show nice and pretty permalinks rather than showing query strings. The problem is I can't get my /products/ endpoint to show up when trying to process my custom rewrite ...
0
votes
0answers
13 views

Regular Expression for rewriting

I want to match url like this y.com/note/class-11 y.com/note/class-12 y.com/note/class-11/ y.com/note/class-12/ But i don't want to match y.com/note/class-11/post_title y.com/note/class-abc I ...
0
votes
0answers
15 views

WP-DownloadManager URL rewrite

I am using WP-DownloadManager. The issue is that it is using a custom post type setting and generating URLs like: example.com/wpdm-category/icons/ [category] example.com/download/concepts-republic/ ...
33
votes
1answer
11k views

A tool to analyze rewrite rules? [closed]

Is there a good tool to analyze my rewrite rules? I always get confused with the regexes and the parameter replacements. I have created something myself and will post it here so others can use it, ...
0
votes
1answer
28 views

Get parameters and custom page template

My WP website have calendar page with custom page template. If i open mysite.com/cal i see calendar of current month, if i open mysite.com/cal/?month=01&year=2015 i see calendar for january. It ...
0
votes
0answers
48 views

Wordpress URL Rewrite is removing special characters

I'm having a little problem with Wordpress's built-in add_rewrite_rule function. It's quite simple: I have a newsletter form, which sends a confirm mail to users, with a confirm code. Let's say that ...
1
vote
1answer
119 views

meta tags doesnt fetch data from permalinks

i have a page http://studyofjoy.com/categories/ i want to add custom meta tags to heading section like this: <meta property="og:title" content="<?php echo "title:" . ...
0
votes
2answers
43 views

Rewriting in wordpress url

Yes we love to make the url more shorter ,more clean. Lets say we have css url like this xxx.com/wp-content/theme_name/css/my_custom_css.css However i would love to display it like this ...
0
votes
1answer
418 views

Remove child category from URL

I am moving a custom website with a WP blog to WP in one install The old URL was: domain.co.uk/blog/post-name The New URL is currently (while using a Category URL rewrite of /%category%/%postname%/ ...
0
votes
2answers
2k views

How to use if($wp_query->query_vars['name'] == 'pagethatdontexist') without getting a 404? How to suppress 404

i want to do something if my url is /pagethatdontexist But I dont want wp sending 404 headers. I tried this: add_action('wp', array($this,'awp')); function awp(){ global $wp_query ; ...
0
votes
0answers
47 views

How to create a custom permalink structure for taxonomies

I`m trying to achieve the following structure in urls for CPT`s: website.com/CPT - Lists all - OK website.com/CPT/post-slug - List the CPT with slug - OK website.com/CPT/tags - Lists all tags used ...
1
vote
0answers
28 views

Including taxonomy term before post type breaks top level pages

Got a website that has two top level pages called commercial and domestic, and in these pages there is other content that shares a similar format, e.g. I want case studies in both the commercial and ...
0
votes
0answers
23 views

Set custom post type's base url in subfolder

I have a custom post type (non-hierarchical), say, "tickets," and usually what WP does with its URLs is this: Single CPT: http://tld.com/tickets/single-entry/ Archive CPT: http://tld.com/tickets/ ...
0
votes
1answer
49 views

Overwrite Wordpress's URL rewrite not working

What I'm trying to do it's pretty much simple, but it's not working and I don't know if it's a Wordpress rewrite or I'm just doing it wrong. What I have is this url: ...
0
votes
0answers
31 views

How can I write the following URL in wordpress

I am working on a project, and one of the biggest parameters was that we keep existing data and URL structures intact. the decision was made long before me to switch from an old, crappy codeignitor ...
0
votes
0answers
71 views

url redirect to another url whilst keeping original url

I have a wordpress site (mysite.co.uk). I also have another add-on domain (mysite.fr) pointing to the wordpress site root. I have pointed this domain (mysite.fr) to this page - ...
0
votes
0answers
99 views

Generate page URL based on form field input

I have a WordPress page with the URL: http://example.com/mypage/ On that page I have a custom form, on the submission of the form I want to generate the URL in following format: ...
2
votes
1answer
58 views

Custom Permalink Tag breaks Pagination

Most the below work stems from a previous question / accepted answer. I'm trying to achieve the following permalink structure: /listings/ /listings/page/2/ /listings/%state%/ ...
0
votes
1answer
181 views

Rewrite Rule for Custom Page with Query Vars in URL

Background I have a a page called 'listen' with a custom template, which runs a custom wp_query that uses the 'show' variable in the URL. The following example works... ...
0
votes
0answers
5 views

How to display customized urls

I need to rewrite some urls or to create masked urls. I create two tags categories displayed as widgets on the site, job title and city name but the url of both tags categories must have the same ...
0
votes
0answers
21 views

Rewrite rules in Multisite not working unless flush_rules() always run

We have a multisite website that creates pages in the website by pulling from an API and inserting them into template files. The current rewrite rules we have made to create these pages are: ...
2
votes
2answers
460 views

Is the SEO plugin necessary?

I want to understand how wordpress is structured in the first place with regard to search engine friendliness. Isn't it set up for SEO by default? Is the SEO plugin necessary then? and to what extent ...
0
votes
0answers
34 views

Make URL like /fr/something display same as /something

I would like every URL of my WordPress site that looks like /fr/something to show exactly the same page as /something, but without redirecting; I want to keep the URL. I think I'm close, I used : ...
0
votes
0answers
64 views

How to show custom URL and load the content of PHP file?

Suppose I want to display the URL like this: www.example.com/whatsup I don't want to make a page to show, just make a URL like that. And say in my theme directory I have a file like this: ...
0
votes
0answers
56 views

Paging not working for hierarchical custom post type

I've defined a custom post type called Fishing Reports, and want to break it down by states, then regions. For example: url.com/fishing-reports/florida/northwest/ That part is working as expected. ...
0
votes
0answers
69 views

add_rewrite_rule using custom taxonomy and year

I have a CPT called books and a custom taxonomy called genre and need to show in a page all books of a specific term and a specific year. For that, I created taxonomy-genre.php file and created a ...
0
votes
1answer
33 views

Add pagination to a template loaded by query variable

I have set a query_var,called men, which loads a custom template displaying men's clothes. The rewrite rule is as follows: ...
0
votes
0answers
23 views

URLs with two taxonomies are missing from sitemap

I have problem with wordpress rewrite and SEO, mostly the sitemap. I'm using the Yoast SEO plugin. I use the regular "post" post type with two taxonomies. The regular "category" and a cutom taxonomy ...
0
votes
2answers
24 views

Many Rewrite Parameters/Rules

I have a bible page which is page_id of 135 and I am trying to create multiple WordPress rewrite rules. I am trying to obtain something like either of the following: website/bible/nasb ...
0
votes
0answers
64 views

Rewrite.php .htaccess generating external rewriterule for a different domain

I've been searching the web for a bit now and have not found a clear answer to this question. How can I modify rewrite.php so that when .htaccess is regenerated it creates rewrite rules for an ...
0
votes
0answers
28 views

How to assign a category of Wordpress posts parent page and change its permalink structure?

I have posts of the category hiring and I need to assign a parent page about to posts from the category, so that the permalink structure can be changed from www.mysite.com/hiring-post to ...
1
vote
0answers
109 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
1answer
88 views

WordPress rewrite rules for state and city

I'm building a site where every state and city in the US has a landing page. I have a database of every city, state, and zip code, set up as a custom post type in WP. Here's what I've done ...
0
votes
0answers
32 views

add_rewrite_rule

Facebook share will strip out querystrings. So I'm thinking if I can create a rewrite rule that will take a pretty URL like: http://mariners.plainjoe.net/irvine/events/event/131306 and rewrite it ...
0
votes
0answers
32 views

Rewrite URL Category + Tag

I want to rewrite some URL's in my Wordpress site. The idea is to change URL's that has been generated by a search form across custom categories and custom tags. For example: ...
0
votes
0answers
69 views

SEO friendly custom page URL for multi-page posts

Is it possible to use a SEO friendly custom url structure for multi-page (paginated) posts in Wordpress? Example: This is the default url structure for paginated posts: category/post/2 ...
0
votes
1answer
48 views

rewrites and custom links in page need help with add_rewrite_rule

I have one page with edited permalink, like, address.com/detail/ I need to send there some values by GET request, so i would like the link looks like /detail/value1/value2/ i added this code in ...
1
vote
0answers
13 views

Correct procedure for advanced permalinks

I've googled this extensively, but can't get my head around it. I have a few custom post types and a taxonomy (location). I can access all the post types in a location via: ...
0
votes
1answer
76 views

How to dynamically alter all the links in menu via function.php

I have been searching and reading for 3 hours and still couldn't find anything that come close to what I needed and I am still trying understand how wp add_filter, rewrite, etc works. Just started ...
0
votes
2answers
2k views

Query custom taxonomy by term id?

I made a custom post type and a custom taxonomy, but I have a problem. When I access the url http://www.ithemes.co.kr/?shopcat=galaxy-s, it works well. But when I access the url ...
0
votes
0answers
23 views

How to remove custom post type identifier in permalinks? [duplicate]

I've purchased a premium "SEO-fitted" (so I thought) theme, that uses custom post types in the URL. like /cat/ or /item/ But I really need to remove those slugs, and change my URLs so it will be less ...
0
votes
2answers
507 views

Permalink Problems

I am having a problem. I am running WP 3.05 with one custom taxonomy. Here is the code to create the taxonomy: function create_property_taxonomies() { // Add new taxonomy, make it hierarchical ...