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
0answers
25 views

Rewrite custom taxonomy URL

I am trying to rewrite a custom taxonomy URL, here is my taxonomy: register_taxonomy('cpt_category', array('cpt'), array( 'hierarchical' => true, 'labels' => $cpt_labels, 'rewrite' ...
0
votes
2answers
153 views

Rewrite rule shows 404 page

I am new to Wordpress so I don't really know how the rewrite rules should look like. My problem is that I have a custom template in my theme called portfolio-inner.php My rule looks something like ...
0
votes
1answer
215 views

URL Rewriting from a Plugin based on custom values

I am developing a plugin where Admin can integrate the plugin to a page where newly added products will be shown.. So, let's say user add the plugin to a page named my-page. So, the main content of ...
1
vote
1answer
67 views

Using WP Rewrite, but just not “getting it”

I'm trying to use WP Rewrite to avoid having to enter anything into an htaccess file. So far, I have this one working just fine (it loads a post from a Custom Post Type): $leader_structure = ...
0
votes
0answers
69 views

Wordpress Landing Page Redirection Issue

This might be a basic issue but I did not know the keywords to search it with. I am working on a Wordpress site. The landing page has the following url: http://www.abc.com/home/ But when I visit ...
0
votes
0answers
27 views

Pass url part as argument to shortcode

I have a page /most-commented which lists all articles which have most number of comments. The list is generated by a shortcode. I want to add year-wise top commented articles so URL should look ...
0
votes
0answers
76 views

Modify / Rewrite single template url structure

Is it possible to add the post category name to the the WordPress single template url structure if i am not using category pages to build the site menu? from www.domain.com/single-post-title to ...
0
votes
1answer
34 views

Simple URL rewriting gone wrong

I have this .htaccess file <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^feed/sejururi\.xml$ /feed/ [L,NC] RewriteCond %{REQUEST_FILENAME} ...
0
votes
0answers
89 views

get_permalink() with wp_rewrite giving wrong permalink?

I have two custom post types: news and special, each would require ID within the url, like example.com/news/ID or example.com/special/ID. Since wordpress's custom post type always have post title in ...
0
votes
0answers
18 views

How can I get rid off url pagination?

I use to paginate my posts but a few day ago I decided to quit split posts in more that one page. But the old links to the secondary pages are still crowlable by the google because they still work. I ...
0
votes
1answer
33 views

mysite.co.uk/wordpress redirects to mysite.co.uk?

I have seen many similar posts about similar problems, but they all seem to say delete the redirect plugin but the only plugin I have is google analytics. The site was working ok, but suddenly ...
0
votes
0answers
22 views

Wordpress Rewrite: Ignore Specific Pattern

I want to make Wordpress Rewrite to ignore a specific pattern, here is what I mean: I have this lovely page http://mysite.com/my-lovely-page I want to ignore anything that contains the word ...
-1
votes
1answer
77 views

wordpress url rewrite Query Var to Static url

i have urls like these: http://animup.net/manga/bara-no-maria/ and have some url parameters http://animup.net/manga/bara-no-maria/?chp=1 http://animup.net/manga/bara-no-maria/?chp=2 ...
0
votes
1answer
461 views

Rewrite rules not working in WordPress

I'm trying to add the new rewrite rules using the rewrite API: add_rewrite_rule('product/([A-Z0-9]{10})', 'index.php/product/?asin=$1', 'bottom'); add_rewrite_rule('product/(([A-Za-z0-9_])*)', ...
0
votes
1answer
39 views

How to turn off searching from URL and go straight to 404 page

When I put something after my domain name that doesn't exist I am taken to my 404 page, for example: example.com/sdkjhfdsjk But if I put something that exists as an image I am taken to the page for ...
0
votes
0answers
70 views

?posts_type=xxx not rewritten

After some more testing and tweaks my main problem seems to be the order rewrite rules are applied, and the second is canonicalization. I'm using this in function.php makes year archives work: /** ...
0
votes
0answers
42 views

Rewrite permalinks using custom taxonomy or category

I have a blog I'm making for sporting events and I have categories (News, Commentary, etc.) and a custom taxonomy called "events" (100m sprint, long-jump, etc.) I'm trying to set up a permalink ...
0
votes
1answer
52 views

Custom slug in url for CPT and taxonomy

I want to add a custom slug to permalink for CPT and taxonomy. Like this: http://mydomain.com/my-custom-slug/post-slug http://mydomain.com/my-custom-slug/product_category Here is my CPT and ...
0
votes
1answer
120 views

Get content from other database table based on an ID and rewrite URL

I am currently using WordPress with SEO friendly permalinks. One page of my website is a special one though, let's call it http://example.org/locales. It is using a custom page template that loads ...
0
votes
0answers
127 views

custom post type post sub page

I have a CPT and my permalink format is like this: http://animup.net/anime/attack-on-titan/ I want to be able to have a sub page like http://animup.net/anime/attack-on-titan/download My code looks ...
1
vote
2answers
81 views

Add custom directory in URL

How can i add custom "directory" in my URL for pages and posts? So the main website url is: http://www.example.com, but when i go to a page I want this kind of URL: ...
0
votes
3answers
66 views

Update permalinks

I have added custom "folder" named Srpski to my permalink structure as you can see in .htaccess file below. So in WP Dashboard > Settings > Permalinks my custom permalink structure looks like this: ...
0
votes
1answer
151 views

WP is ignoring .htaccess rewritten URL

I have two domains being served from the same WP install. edit: not multi-site In wp-config.php I have define('WP_SITEURL', "http://$hostname/wordpress"); etc. The two domains will have similar ...
0
votes
1answer
61 views

Losing the original URL when using add_rewrite_rule

I'm attempting to implement a rewrite rule so I can introduce a variable into my CPT's single page template. Basically I'm trying to include 'all' between my CPT's slug name of work and the category ...
0
votes
0answers
34 views

Rewrite URL based on form input

I have a form: <form action="<?php echo get_permalink(); ?>" method="get"> <select name="genres[]"> <option value="jazz"></option> <option ...
0
votes
0answers
99 views

Change search permalink slug to e.g. /tutorials/search/searchterm

I want to rewrite the ugly /?s=searchterm to /tutorials/search/searchterm It's a multisite, so I want to make this multilingual. How can I accomplish this?
1
vote
0answers
92 views

Help writing custom function with rewrite endpoint that generates a page from dynamic content

I'm creating a WordPress plugin that will pull content from an API and display it dynamically on a WordPress blog like it's native content. An example of this content would be company locations. I ...
0
votes
1answer
141 views

Custom Structure permalinks error 404

i have changed the wordpress custom structure permalink to /%post_id%/%postname%/ and get this error : 404 Not Found The requested URL /mysite/blog/1/hello-world/ was not found on this server. ...
0
votes
0answers
106 views

How to make a custom route with any-string-part/number-part pointing to an existing page?

I've got a page with my own widget inside of it which needs some params from the url to produce dynamic db results - don't worry everything is sanitized well and I only let this part out to keep this ...
0
votes
0answers
327 views

add_rewrite_rule not working

I'm trying to do some url rewriting. I've picked this example right off the wordpress wiki here: add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','index.php?foo=bar','top'); The wiki page says: ...
1
vote
1answer
175 views

How to set up Author archives with sub category URL

So i have a site where i have used the authors.php page so that i can display individual user's profile pages.. the url then looks something like: http://mydomain.com/author/test/ What i would like ...
0
votes
1answer
90 views

URL Rewriting if it is a single post / redirecting post - post type

I have a unique kind of question that I've been wrapping my brain around. Google is penalizing us with duplicate content because you can access our single blog posts both by going to: ...
0
votes
2answers
54 views

Do WordPress Permalinks Refer to a Lookup Table in the Database?

I'm trying to figure out how to rewrite URLs while dropping the original parameter (whether it's a number or text); basically exactly what WP does with it's clean permalinks Does a database lookup ...
1
vote
1answer
139 views

'rewrite_rules_array' or 'generate_rewrite_rules' for adding custom rewrite rules?

Is there any reason why I should use rewrite_rules_array instead of generate_rewrite_rules? generate_rewrite_rules works out of the box, but I couldn't get rewrite_rules_array to work. And I am told ...
0
votes
0answers
92 views

WP Multisite URL rewrite static content folder

I have a WP multisite installation on the root folder. one of the sites have a subdomain subdomain.mysite.com in the root folder there is a sub directory called /subdomain-static folder ...
0
votes
1answer
160 views

Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?

Question updated. What I'm trying to do If I want to display posts (or a feed of posts) that belong to a category AND a custom taxonomy, or a category AND a tag, or a custom taxonomy AND a tag, I ...
0
votes
0answers
23 views

Custom Post Type rewrite with Custom Taxonomy and Custom Meta!

I have a custom post type called 'photos'. I have a custom taxonomy called 'series'. Each post will have a custom meta item called '_photo_number'. I want my URLs to go something like this: Single ...
0
votes
1answer
135 views

Rewrite Rule & Regex - Extract 'cat-name' and 'page-number' from http://domain.com/custom-post-type/category/cat-name/page/page-number

I have an URL formatted so: http://domain.com/custom-post-type/category/cat-name/page/page-number I need to extract: cat-name and page-number So that in my functions.php, I can create the custom ...
1
vote
0answers
28 views

Custom Permalinks for Custom Taxonomies/Post Types -> Top Level Pages not working [duplicate]

I have created a custom post type called "artists". These are categorized by the custom taxonomy "style". I do have this: ./photography/edward-example (single page with details) ...
0
votes
2answers
392 views

Overwrite rewrite-slug of built in post-type 'post'

I need to change the rewrite-slug of the built in post-type 'post' to 'example.com/magazine/news/any-nice-news-item'. When I re-register the post-type 'post' and set the rewrite-slug to ...
0
votes
0answers
53 views

Use of unicode postname when using custom generate_rewrite_rules

I have a custom rewrite rules like.. add_action('generate_rewrite_rules', function ($wp_rewrite) { $wp_rewrite->rules = array('products/(.+?)$' => ...
0
votes
1answer
31 views

Hard to find a good rewriting rule

I need to rewrite an adress for my WP site. I encounter difficulties, and I may need your kindfull help. In fact, in need to rewrite ...
0
votes
2answers
1k views

Rename “Portfolio” slug?

I have a WordPress theme that I am working with called "Forte". Yes, it is a premium theme. I have reached out to the developer but apparently he doesn't really want to help in this situation. Well I ...
0
votes
0answers
68 views

rewrite rule for home/index page

I've been struggling for a while already and all of my attempts failed so I have no other choice but to ask for help here... a) I've made a custom post type page_blox whose capability_type => ...
0
votes
2answers
49 views

Custom Post Type URL Rewrite's

I am going to try and sum up what I am trying to achieve... Basically I have a custom post type called 'marketing_list' which will have custom fields holding information relating to marketing lists ...
0
votes
1answer
89 views

URL rewrite in theme doesn't seem to be working

so I was asked to create url rewrites for one of the websites we're working on, but the thing is the test rewrite I did, just to try it out, is not really working. here's the code I put in the ...
0
votes
2answers
132 views

URL Rewrite doesn't work for nested pages

I am using URL rewrite like this page: unexpected problem in url rewrite It works without any problem, but when I try to use the same rules for nested page, it doesn't work. Say, I have two pages ...
0
votes
0answers
82 views

One WP install, I need to map a custom domain name to each category

I've read other answers but they weren't satisfactory. Multiple blogs, different domain names, one install to rule them all Multiple Domain Names - One WP Install (non-Multisite) - Default Each ...
0
votes
0answers
45 views

Rewrite rule for custom parameter

I'm stuck with rewrite rules regex. I have this kind of link: http://www.xyz.com/page-1_b/page-3_d/page-0_a/box-page-3_d I need to add rewrite rule for this link so that it extracts what's after ...
2
votes
1answer
47 views

Why is WP creating both “/?tag=” and “/tag/” URLS for same content?

I've noticed that WordPress is generating duplicate content with slightly different URLs. For example: http://example.com/the-blog/?tag=santas-workshop ...