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)

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
235 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
212 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
303 views

Keep requested/entered url with add_rewrite_rule

I've got url-rewriting partially working. I have this rule: ...
3
votes
2answers
679 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
255 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
925 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
317 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
767 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
735 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( ...
2
votes
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
698 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
299 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
2k 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
41 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
7k 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
287 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
186 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
195 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
527 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
139 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 ...
0
votes
1answer
4k views

custom htaccess rewrite rule for page

i have a page in wordpress called "video". its page id is 6, and its slug is "video" in my theme ive set it up to show content based on GET variables here is the URL rewrite im trying to set up: ...
2
votes
1answer
122 views

Rewrite of URL with '[' ']' or '(' ')' as literals

Trying to match and URL like this linktosite/alphaNum/123/321/alphanum[alphanum].jpg in .htaccess I can match and extract all the groups properly with ...
3
votes
1answer
4k views

Add Rewrite Rule for custom page

Was trying to create author specific page with author specific URL and it was working fine,but when i created this URL did not taken in to account following 2 factors Author Name Conflict (similar ...
0
votes
1answer
133 views

Creating author Specific page URL

My Question is almost similar to author-specific-urls-in-wordpress and mapping-multiple-urls-to-same-page-in-wordpress. And i have followed the following steps Created a custom page (writer.php) ...
1
vote
2answers
999 views

How to Create a Custom Plugin Permalink

I wrote a simple plugin that will redirect the users to a page on a certain date. (in this case it's for the Blackout against SOPA here in the US) Right now I'm using the line ...
1
vote
1answer
308 views

How can I rewrite a URL to pass requests to a custom method via AJAX? (I can't use admin-ajax.php)

I have to build a WordPress plugin which gives out HTML for an AJAX call. However, because of the server environment I cannot use the traditional admin-ajax.php. Someone told me that I could build a ...
1
vote
3answers
2k views

Is it possible to change the URL of custom post types to hide the post type slug?

I would like to turn /{custom-post-type}/{post-name} to /{post-name}, is this possible? If this is not possible, can I change the labels/terminology in Pages or Posts so that they could be called ...
2
votes
2answers
2k views

Custom permalink structure only for default posts

Does anybody know how to modify the url struct only for the single post page? When I go to a post page, the url should look like: example.com/xxx/my-post. All other urls (with the exception of the ...
0
votes
1answer
503 views

Rewrite custom taxonomy slug - but only parent items

I've set up a custom hierarchical taxonomy called 'region'. So now I have e.g. url.com/region/leeds/ etc. However, I'm now expanding to other countries, so I'm making the region sub-categories of ...
3
votes
1answer
3k views

“.#[random-char-string]” being inserted at end of URLs

I've seen this on a couple of sites now and I'm having trouble finding information about (probably because it's awkward to describe): All internal URLs like this for example: ...
0
votes
2answers
388 views

Pass parameters to static home page brings up index.php latest posts

i have a Wordpress site that has the main page set to a specific template. www.mydomain.com -> main_page_template I am trying to pass in some params to my main URL as follows ...
0
votes
1answer
1k views

add_rewrite_rule again

In general, the code from this question fit to me for 90%. One little change I need - I want all URL like *example.com/snpv/any_text/* direct not to index.php as in original code, but to my.php script ...
0
votes
1answer
522 views

Retrieve query var within functions.php

I have query var set using the following filter: add_filter('init', 'add_query_vars'); function add_query_vars() { global $wp; $wp->add_query_var('user_login'); } I am able to retrieve ...
0
votes
1answer
629 views

Including two taxonomies in a permalink structure

I am trying to get my head around the permalink structures on Wordpress sites, and I'm a bit stuck with what I'm trying to achieve: My current permalink structure: /%category%/%postname%/ I have a ...
0
votes
2answers
412 views

How can I allow trailing slashes on some URLs without a redirect, but not on others?

Here's the scenario. Assume I have a site, wordpress.site, which has the following Permalink structure: /%postname% Assume I then set up the following posts: /post1 /post2 /post3 If someone were ...
1
vote
3answers
649 views

flush_rewrite_rules not working on plugin deactivation, invalid URLs not showing 404

i'm just about to release a community plug-in and have a few last anoying issues. First, whenever i visit a page that would not be valid for the plugin, www.mydomain.com/forms/tester it will take me ...
1
vote
2answers
107 views

How to access custom pages

This should be a simple question. On websites like themeforest where you can buy themes others have built, when you preview the themes almost all the themes will have seperate pages for you to view ...
0
votes
2answers
1k views

404 for index.php

I've recently switched from linux to windows hosting on IIS7. I have permalinks working fine, but for some reason when I try to view the site index (index.php) I get an internal wordpress 404. I can ...
0
votes
2answers
944 views

Why is home page content not displaying with this rewrite rule?

I am trying to pass a variable from a URL to PHP using mod_rewrite while maintaining standard WordPress functionality. Here's my mod_rewrite rules: RewriteEngine On RewriteBase / RewriteRule ...
0
votes
2answers
717 views

URL rewriting for WordPress Network (Multisite) subsite

We have an install of WordPress Network (Multisite) that has multiple blogs running under the url blogs.exampleurl.com where each subsite is blogs.exampleurl.com/site1 /site2 etc... We have a user ...
0
votes
1answer
204 views

Modifying WP URL handing code?

I am trying to use mod_rewrite and modify WordPress' URL handling to allow for passing variables to PHP from the URL while maintaining "pretty permalink" functionality. (on WP 3.2.1) Something like ...