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
37 views

Format HTTP links

I have a custom page template creating an xml feed found on a WP page at http://example.com/xml/ I am trying to access this xml document via Google Maps but it appears I need the actual file name ...
3
votes
1answer
98 views

How would I leverage custom Taxonomies in this scenario?

2 Tier research: I am building a site for a client that specializes in research travel. They offer 2 tiers of research assistance, "Standard" and "Premium". Each of those levels of service have ...
0
votes
1answer
664 views

Custom Post Type and single-posttype template

I created CPT topic function wpse100_create_cpt() { register_post_type( 'topic', array( 'labels' => array( //..... ), 'public' => true, ...
4
votes
1answer
9k views

Rewriting a custom-post-type permalink with taxonomy term?

I'm trying to rewrite my url for a custom_post_type named wr_events with one of its custom_taxonomy terms from event_type add_action('init', 'wr_events'); function wr_events() { ...
0
votes
1answer
245 views

Rewrite /category/cars into /topics/cars

I know there are plenty of question and posts about this out there, however I couldn't find a solution or existing thread to my specific question. If I list my categories and click on "cars" the url ...
2
votes
4answers
1k views

rewrite rules and querystring

When I go to the url mysite.com/photos/120 I'm wanting to get the 120 out. In the PHP I want to be able to grab these "parameters" like the url was mysite.com?page=photos&id=120 or even just ...
6
votes
2answers
745 views

Problem with add_rewrite_rule and pagination (paged and page query_vars)

I have a custom taxonomy named location and I want to add sections like 'news' and 'marketplace' for each term, so my url looks like /location/montreal/news/ It works perfectly until I try to add ...
1
vote
1answer
2k views

How to retrieve $_GET variables from rewritten URLs?

I need to receive some special $_GET parameters for a custom page I'm making, i know how to receive this through a simple $_GET like mysite.net/products/?id=1 , but I wanted to use the URL style of my ...
2
votes
3answers
574 views

flexible rewrite 'ramble' URLs with Wordpress

I want to access my post with id 17 like this: http://localhost/archives/17/moot-bla-foo-ramble In other words, the id shall decide, everything thereafter may (or may not) be the slug or anything ...
0
votes
1answer
138 views

How to use permalink query to go to specific tabs in posts

I'm not really sure how to phrase the questions, but hope it's not too confusing. Basically I've create a plugin which inject custom tabs into the posts content when displaying. For now, just assume ...
0
votes
1answer
121 views

Requested URL changes when using custom rewrite rule

I'm having basically the same problem as question #44117. I have a custom rewrite rule set using add_rewrite_rule, but when the user goes to the page, the entered url changes and the value is lost. ...
0
votes
1answer
180 views

Wordpress custom permalinks, pages are now 404

I've set my permalinks to a custom structure: /%menutype%/%postname%/ This works all right for my custom taxonomy (menutype) and anything that's an archive. Now however, simple pages won't work, ...
1
vote
1answer
408 views

Append a value to a certain page's URL before page load

This particular website is using Tubepress to display a youtube video gallery. Now, Tubepress recommends that, to define which video goes to the front part of the gallery, we should append the id to ...
1
vote
1answer
243 views

How To Consistently Enforce Rewrite Rule in Plugin Development

Let's say I create a customer support plugin that hijacks the /support part of the URL and redirects it to an MVC framework in my app folder of my plugin folder, like so: RewriteRule ^support(.*)$ ...
0
votes
1answer
102 views

Plugin generated taxonomies' permalinks with custom placeholders

I have a problem with permalinks for custom taxonomies generated with Types http://wordpress.org/extend/plugins/types/, a plugin for creating taxonomies, custom posts and custom fields. The problem ...
1
vote
1answer
1k views

Auto generate rewrite rules for multiple taxonomies

so i'm back with rewrites... i am looking for a more automated solution. i stumbled across this on the interwebs: /** * Generates all the rewrite rules for a given post type. * * The rewrite ...
3
votes
1answer
796 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
253 views

Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)

I update my permalink structure to /post/%post_id%/%postname%, but if someone uses a URL like /post/1234 instead of the full URL of /post/1234/bingo-rulz, WordPress shows the post without giving a 301 ...
1
vote
1answer
102 views

custom template rewrite

I have a page called my-todo-list and is using a custom page template. The page is accessible via this type of URL : http://domain.com/my-todo-list/ Now I need to paginate it, and I want to look ...
0
votes
2answers
401 views

custom url - add attachment's id or name after post

I want to link to attachments but through its parent page. /directors/piranha-bar/ shows all of that post's attachments on single.php and i want /directors/piranha-bar/video/name-or-ID/ to still use ...
2
votes
1answer
531 views

How to create a specific frontend URL (not a Page) from a theme or plugin?

My theme implements an AJAX action that returns some dynamic content and needs some functions from the Wordpress environment. How can I construct a URL for the AJAX call in the most elegant and robust ...
2
votes
2answers
2k views

Rewrite Rules for Multiple (more than 2) Taxonomies

I am using woocommerce and have some 'product attributes' which are just a taxonomies. I have the following taxonomies: pa_color pa_material pa_style the pa_ stands for product attribute and it ...
1
vote
1answer
233 views

How can I dynamically generate an image with a static image URL?

What I'm trying to do is very simple. Whenever someone visits, say site.com/socialproof.png, I want it to use a rewrite rule to point it to a file in my plugins folder. Can I do this with WP's ...
0
votes
1answer
207 views

How to configure Multisite Network with randomized hostnames?

I'm trying to convert a freshly-installed and functional WordPress into a multisite network. But I'm having problems because of our Apache configuration. We use Apache to randomly redirect requests ...
3
votes
1answer
1k views

Custom post types - Use post_id in permalink structure when using has_archive => true

I recently asked this question Custom post types - Use post_id in permalink structure and solved it but as I have enabled 'has_archive' => true the solution given no longer works. Let me explain: ...
0
votes
1answer
297 views

Keep requested/entered url with add_rewrite_rule

I've got url-rewriting partially working. I have this rule: ...
3
votes
2answers
630 views

Custom post types - Use post_id in permalink structure

I'm registering my CPT like so: $args = array( 'labels' => $labels, 'public' => true, 'hierarchical' => false, 'rewrite' => array( 'with_front' => false, ...
3
votes
1answer
243 views

Sub domain redirection to taxonomy

Hi all I want to use sub domain for my taxonomy like that : http://taxonomy.domain.com/apple map to http://www.domain.com/taxonomy/apple I add this to my vhost RewriteCond %{HTTP_HOST} ...
1
vote
1answer
1k views

Allow single quote in URLs

I have a wordpress site hosted on a godaddy server running apache. My experience is on windows iss so this might be an easy question but I can't figure it out. I want to allow urls at my site like: ...
2
votes
2answers
880 views

Customising rewrite rules for CPT single post URL to work as paged URL

I've got a CPT called Service registered as following: $args = array( 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'has_archive' => false, ...
0
votes
0answers
243 views

Wordpress Plugin function callback by URL [duplicate]

Possible Duplicate: How to Rewrite Wordpress URL for a Plugin I'm creating a plugin for Wordpress. Is there any way or API to make plugin receive a path or URL so that it can trigger or ...
0
votes
2answers
297 views

Import images from self-hosted to WordPress.com

I'm trying to migrate my self-hosted WP blog to WordPress.com, images included. Originally images were hosted on various image-hosting websites, but I've used this plugin to cache and upload them to ...
5
votes
3answers
751 views

How-to add rewrite rules to point the uploads folder to a subdomain

The goal Point the upload-folder to a static subdomain to serve adaptive images, that can get cached. WordPress Rewrite Rules You can read more in detail about rewrite rules API at Christopher Davis ...
0
votes
2answers
688 views

Rewrite Rules Are Redirecting and Not Passing VARs

I have the following code in my functions.php file. <?php add_action('init', 'flush_rewrite_rules'); function custom_add_rewrite_rules( $wp_rewrite ) { $new_rules = array( ...
1
vote
1answer
3k views

Custom post type permalink endpoint

I have a custom post type called "destinations" and I have set the EP mask for the post type to default EP_PERMALINK. I have added a couple of endpoints as follows : add_filter( 'query_vars', ...
0
votes
1answer
654 views

Changes done to .htaccess are not getting reverted back

I am new to WordPress and playing around with it to get some idea about its working. I have done some changes to WordPress' .htaccess file to add some redirection and that worked perfectly fine. Now ...
1
vote
1answer
283 views

Can't add external rewrites

I've got the following code in my functions.php function add_custom_rewrite_rules(){ add_rewrite_tag('%gallery%','([^/]+)', 'gallery='); add_rewrite_tag('%album%','([^/]+)', 'album='); ...
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 ...
1
vote
1answer
1k views

Rewrite wp-login.php URLS to static pages?

I'm struggling with getting a few things in WP to redirect. I'm using a front-end profile / profile editor, and I'm also using a front-end login/register. Naturally I would like to redirect the ...
0
votes
1answer
40 views

custom post archive URL is wrong

I recently found out that I could use the with-front=>false argument in register_post_type(). So I went and changed my custom post type slugs and did a flush_rewrite_rules(). Now 2 of my custom ...
0
votes
1answer
1k views

WP-e-commerce (getshopped) - Annoying permalink issue

i’m using wp-ecommerce (getshopped) and WPML on a website, all pages display correctly when i use the default (/ugly…) permalink structure, but when i try to use the much desired permalink structure ...
2
votes
2answers
6k views

Using $_GET variables in the URL?

I need to generate a simple error message on a page by passing a variable through the URL. The URL is structured as follows: http://site.com/parent-category/category/?error=pause I'm sure it's the ...
1
vote
1answer
1k views

custom url rewrite

I have a custom search, one database out of WP, I store the page in wordpress admin panel: http://localhost/wp/wp-admin/post.php?post=96&action=edit&message=1 Then the page's url looks like ...
0
votes
3answers
3k views

Change Attachment Post URLs to File URLs

I have a client with a very image heavy blog. Every time they upload images in their posts they are using the Attachment Post URL for the link instead of the File URL. The problem with this is that ...
0
votes
1answer
282 views

How to prevent URL-modification when page title contains digits only?

When I create a page whose title contains only digits - wordpress adds '-2' to the url, like it does in cases, where there is a page with the same name already existing. However this is not the case ...
1
vote
2answers
178 views

How to redirect a link to a new link?

I am about to change the slug for my page's permalink. Since I dont want to loose the traffic, i would like to redirect the visitors to the new more SEo friendly link. Can I achieve this with the ...
0
votes
1answer
185 views

Add extra optional text to permalink e.g. “-with-*”

I've been scratching my head about this one for a while. I have tried to add a hook within WP_Rewrite to ensure that we can pick up pages with a similar structure: /products/product1-with-* ...
0
votes
2answers
496 views

modify URL with mod_rewrite or hook

i'm trying to achieve the following: user enters this URL into browser http://mydomain.com/boston/categoryname/postname/ i then want to get the first "folder" and check whether or not it's ...
0
votes
1answer
1k views

Custom permalink with child taxonomy terms

This may ressemble other questions, but i'm posting my own as I couldn't find a conclusive answer that worked for me. What you need to know I have a custom post type (products), with a custom ...
0
votes
1answer
131 views

help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]

Possible Duplicate: custom htaccess rewrite rule for page ok i made another post and i got pointed to the Rewrite API however, when i do print_r($_GET) on the page, it echos an empty array ...