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)

3
votes
2answers
1k views

Google is indexing wordpress attachment pages

I have a bit of a problem/issue what is freaking me out a bit. I hope you can help me. If i do site:www.somesitename.com search in Google i see that Google is indexing my attachment pages. I want to ...
0
votes
0answers
15 views

How to Combine Two Custom Post Types into Single Permalink Structure

The website uses - A) A hierarcical Custom Post Type "Destination" to support the following structure, so each tier of the hierarchy could have its own unique destination guide: Territory - ...
0
votes
1answer
313 views

Permalinks for Taxonomy and Custom Post Type

Have the following situation here: Custom post type: 'recipes' Taxonomy for custom post type 'recipes': 'receitas' One of the taxonomies slug: 'receitas-whoopie-pie' The permalink structure MUST be: ...
0
votes
2answers
933 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'; ...
4
votes
3answers
1k views

Custom Post Type and Taxonomy URL rewrite

I'm creating custom theme for my personal website using Wordpress 3.5.1. I have problem with the WordPress custom post type and taxonomy, here's the detail: custom post type name: articles taxonomy ...
0
votes
1answer
16 views

Query var removed after rewrite

I have a WordPress blog that uses custom post types, which I'm creating using the WCK plugin. One of which is the post type shows. A permalink to a specific show, then, appears as: ...
0
votes
1answer
42 views

Redirect A URL Pattern In WordPress Using .htaccess

I am new to WordPress and just converted from Blogger to WordPress. Now as you know that Blogger URLs are too different from WordPress URLs so after migrating I started receiving 404 error in Google ...
0
votes
1answer
24 views

How to mask url of a specific page without affecting seo [closed]

What I'm looking to do is exactly this and/or this. What's holding me back is my fear of losing all the SEO traffic my posts at site.com/blog/post have already acquired. Would implementing this fix ...
0
votes
0answers
10 views

Re-write URL for certain sub-pages only

For better Organization in my Admin panel for Pages on a site I would like to add a page called "Unlisted" and then add sub-pages to this page that I do not want to be listed on the site...the purpose ...
0
votes
2answers
406 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 ...
3
votes
2answers
477 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
3
votes
2answers
430 views

Rewrite url for custom post type

I'm using WPML plugin to translate my site. I have a custom post type called "vinos" and I use this args: $args = array( 'labels' => $labels, 'hierarchical' => false, ...
0
votes
0answers
13 views

how to change some of the rules in the database

I need to add a rewrite rule for a WP page. I noticed that the rule is already part of the existing set, but apparently it is not correct. With the hope some internal mechanism would have replaced ...
2
votes
1answer
235 views

How to get pretty URLs with add_query_arg in permalinks

With add_query_arg() it is nice to add additional parameters to an URL and it is also easy to create a rewrite rule. So far so good. But the problem is the URL replacement done by wordpress. When I ...
0
votes
1answer
38 views

How To Run Multiple Multi-Site Networks On Same Box [closed]

I'm building a multi-site project locally using the VVV Vagrant VM. I setup a sub-domain multisite install with domain mapping and two sub-sites. Everything works fine. This was my sandbox that I ...
3
votes
1answer
247 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 ...
2
votes
2answers
1k views

Remove parent slug for child pages

I'm looking for a plugin/custom function that removes the parent slug of a child's page permalink. Something that automatically changes the permalink for child pages. Example: ...
0
votes
3answers
36 views

Once redirected by Rewrite rules, how can WordPress know the page?

I have been searching for some configurations of .htaccess, filters and hooks to make able to manage the inner site uri's. The goal was force login, register and admin pages through SSL, and all the ...
0
votes
1answer
39 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
1answer
14 views

Font Page overrides rewrites

I have a custom rewrite as follows So /shares points to a page I created with a slug images which uses a custom query variable named h626_page. My problem is I want to set the images page as ...
1
vote
1answer
236 views

Need to add rewrite rule that adds in additional information about the post to url

A have a post type for venues which have the attributes title, state, and suburb. Currently using the default WordPress permalinks I get the following format: mysite.com/venue/{title} However, I ...
0
votes
0answers
15 views

Rewriting URLs with Query Strings

I've been (unsuccessfully) attempting to prettify some URLs in a website I'm building in Wordpress, from something like this - ...
0
votes
1answer
415 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 ...
1
vote
1answer
464 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
0answers
17 views

Dynamically add a keyword to url with a specific template

I'm working on a site that is going to have two parts. Its going to have the regular marketing website and its going to have lots of landing pages constantly being drafted up to test things. My ...
0
votes
1answer
36 views

Rewrite Endpoints and CPTs - How to use in a plugin

I'm working on rewrite rules for a plugin that uses a URL endpoint, /modifier, to create a query_var &modifier=1 to signify it should do something else. The rewrite deals with URLs where ...
2
votes
1answer
1k 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 ...
0
votes
1answer
20 views

.htaccess RewriteBase equivalent for WordPress - Passing a URL as a variable without getting a 404

I have a page ran by a javascript plugin that changes the url every time a slide in a gallery is cycled. This means that while slide 1 is visible, the URL is http://www.sitename.com/gallery/slide1/ ...
0
votes
1answer
51 views

web.config breaks the themes for sub-directory multisite

We are converting a single wordpress site to a sub-directory network but we can't find any web.config that works correctly. We can never get the theme to work, not even on the root (/) site, as soon ...
1
vote
1answer
369 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 ...
0
votes
1answer
386 views

Wordpress Rewrites - How can I pass a variable to Custom Post Type?

I'm looking for a wordpress rewrite that will let me pass a query var. I have a custom post type that produces urls like this: example.com/custom-post-slug/custom-post-title/ my goal is to have ...
1
vote
1answer
44 views

Rewrite Page with a slug before page name

I am using $wp_rewrite->non_wp_rules I have the following code that works: 'name/(.*)' => 'index.php?post_type=post'; Im able to use a url like http://mysite.com/custom_name/post_name using ...
0
votes
1answer
27 views

How do I remove a word from a url in Wordpress using .htaccess?

In the site I'm building there is a post-type called "Focus". Since they need to url to be like www.mysite.com/focus/page-post-name I have the post type slug as "focus". Of course the archive page is ...
1
vote
0answers
37 views

How to change hierarchical page permalinks to be flat

I'm building a site for a client with a large navigational structure. I think it would be easiest for them to manage if the pages were listed hierarchically in the admin panel, but it would also be ...
0
votes
1answer
1k views

Rewrite rules for custom posts types

So I created a new post type 'quote'. Basically I want to change all quotes URLs to domain.com/quotes/ID since as it as right now (/?quote={xxx}) could get pretty long, and since this post type is ...
0
votes
1answer
24 views

Help to cleanup this code

I am trying to change my attachment page link yo example.com/photos/attachment_ID/post_name/attachment_name can you tell me how to call the parent post name function wpd_attachment_link( ...
0
votes
0answers
18 views

URL rewriting with custom pagination

I'm using a custom query to display the results with the pagination and rewrite the URLs. The following function works fine and displays the URLs in following pattern: ...
0
votes
0answers
11 views

Need help with rewrite of Attachment URL [duplicate]

How can I change Attachments URL to example.com/photos/attachment_ID/post_name/attachment_name Thank you
1
vote
0answers
40 views

Cache issues with redis and nginx

I have a problem with the rewrite rules in my nginx config file. I am running wordpress with nginx and redis to cache the site. I can get the redis to cache all pages not a problem, but as I am ...
0
votes
0answers
10 views

How to turn system default url into friendly urls?

We have been using wordpress for everything and we are really happy with it! While we can customize the way our friendly urls look though, there does not seem to be a way to do the same for the ...
0
votes
3answers
162 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
0answers
21 views

Custom Post Type and Custom Taxonomy - Same rewrite/permalink

I may be attempting the impossible here, I'd like a custom post type and a custom taxonomy to share the same rewrite. The rewrite being "/", with the intention of not having the custom post or taxo ...
0
votes
1answer
33 views

rewrite rules social share links

Within the Ultimatum's theme childtheme.php I've added rewrite rules to the rewrite rules and it works perfectly fine. However, it does not work if the URL is shared in Facebook or Twitter. The ...
0
votes
0answers
24 views

Create custom 'page' with plugin

I haven't been able to find this anywhere else so I thought I'll ask here! My plugin creates a custom post type with the various front-end rewrites, and I'd like to create a page on the front-end ...
1
vote
1answer
332 views

Custom query_vars and parse_request on wp-admin

I've read this post http://wordpress.org/support/topic/query-vars-in-admin and although it's quite an old question, it suits me perfectly. I'm trying to accomplish what I already posted here: ...
0
votes
0answers
23 views

Wordpress permalinks on subfolder in iis7 not working

I have IIS 7.5. mod rewrite active. Currently, my wp site is inside subfolder. Here is web.config in my root folder : <rewrite> <rules> <rule name="site2.com" stopProcessing="true"> ...
2
votes
1answer
742 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
0answers
25 views

Append a custom string in custom post type URL

Is there any way in WordPress how to achieve following situation? I have a custom post type with permalinks. And I need to append a string to this URL, which will produce a different view. E.g. - ...
2
votes
2answers
134 views

External/non-WP rewrite rule without QSA

I'm trying to add a new external/non-WP rewrite rule to my .htaccess but WP keeps adding [QSA,L] to the end of the rule. How do I prevent the QSA part? This line adds the RewriteRule: ...
0
votes
0answers
14 views

Wordpress custom URL htaccess not working

I am having a URL in wordpress which needs to be changed. http://www.somedomain.com/site/other-jobs/view/?action=view&title=php-developer&JOB_ID=158 I want to make this URL to look something ...