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
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
2k 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
257 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
170 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
159 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
410 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
123 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
3k 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
117 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
3k 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
122 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
875 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
290 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
1k 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
464 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
2k 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
324 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
365 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
556 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
333 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
555 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
103 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
915 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
831 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
568 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
196 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 ...
3
votes
1answer
197 views

Remove unwanted part of permalink custom structure from CPT url?

My site currently has regular posts (in a section called "Trend Watch"), as well as a Custom Taxonomy (called "Region"). My permalink settings have this Custom Structure: ...
1
vote
2answers
114 views

How can we take into account post types when constructing permalinks?

When I'm working with Wordpress's permalink system, I can create plenty of options for creating permalinks, like so: /blog/%year%/%monthnum%/%day%/%postname%/ But if I add introduce a new kind of ...
8
votes
3answers
4k views

Masking wp-content/themes/name/images to just images directory using htaccess

I'm trying what I thought would be something really simple of masking my url but cannot seem to get it to work. I want to be able to link to images in my img tag without having to type in the full ...
0
votes
1answer
324 views

change url for portfolio image

I am working on champer theme , I add portfolio by guideness of documentation, but when i click on image , its go on another page, but I want to stay in similar page, not changing. how can I do this. ...
2
votes
2answers
714 views

Add .html extension to only one page in my Wordpress site

We had an old site that had html pages in it. One of the pages in that site was linked to from many other sites. Now we moved to a WordPress site, and we created a page with that name, but of course ...
0
votes
1answer
308 views

Author Specific URL's in WordPress

In continuation of this thread Mapping multiple URLs to same page in WordPress is there any other way except redirect similar pattern URLs to same page. Our goal is to provide our guest and other ...
0
votes
2answers
945 views

Subdomains pointing to a permalink URL

I have Wordpress (v3.2.1) set up at domain.org.nz/wordpress with a number of pages set up as domain.org.nz/wordpress/services/example. I want to set up a subdomain, example.domain.org.nz to point to ...
0
votes
1answer
459 views

Rewrite loading custom template file but is_home() returns true, and there's no 404

I want to create some custom pages for my theme that don't appear in the Page listing in wp-admin. I have the following class which intercepts the url. class jtvRewrite { var $path = ''; function ...
0
votes
3answers
4k views

Mapping multiple URLs to same page

I just came across this page with almost similar requirements as mine Multiple endpoints to same page i have to achieve same functionality but i also want to pass some parameters to the page where ...
0
votes
1answer
635 views

How to properly prefix blog post URL's

I want to prefix my blog posts with /news/ and changing my Permalinks to /news/%postname% seems to do the trick. However, I also have a few custom post types and for some reason those URL's are now ...
0
votes
2answers
454 views

Custom post type permalink structure

I've browsed tons of Q/A on stackexchange, google, wordpress forums... but haven't found yet a definitive answer to what looks like to be a common issue since the introduction of custom post types. ...
0
votes
1answer
456 views

How to deal with a GET variable of 'name'?

I'd like to have a custom registration confirmation page live within a WordPress site. I can provide a URL for this page to an external site. When the registration is successful the URL has several ...
-1
votes
2answers
131 views

URL issues with WordPress

I am having some URl issues with WordPress Basically i have different categories and for some reason whenever I have posts with exact same title...even though in "different" categories...I still have ...
0
votes
1answer
2k views

Nginx rewrite rules

I am having some problems with the Nginx rewrite algorithm for WordPress. I am using this for the rewrite and it works good; server_name www.domain.com domain.com; if ($host != ...
0
votes
1answer
294 views

Can’t use a specific custom URL (slug)?

I’m having some problems understanding an error I’m getting. I have a page which is called “pitch” and as such the URL and the slug should be “pitch” as well, so: www.my-domain.com/pitch/ But when I ...
3
votes
1answer
9k views

How to rewrite URI of custom post type?

The site that I am working on uses the following "pretty" permalink structure: http://example.com/blog/my-special-post But for a custom post type my client would like to avoid having a "pretty" ...
8
votes
1answer
996 views

Does WordPress keep track of a post's URL history and provide automatic redirects?

I just changed the URL of one of my posts from http://2011.denmark.wordcamp.org/session/theme-frameworks-trends-og-standardisering/ to ...
3
votes
1answer
969 views

Multiple endpoints to same page

I'm doing a bit of AB testing, and am looking for a way to point multiple endpoints to the same page in wordpress. My site is using wordpress as it's CMS tool. http://mysite.com/test/link1 ...
0
votes
2answers
219 views

How are rewrite rules applied in WordPress?

How are rewrite rules applied in WordPress? I don't see any rules in the .htaccess file... For example, if I set the address URL to www.example.com, then calls to example.com will 301 redirect to ...
0
votes
1answer
601 views

Rewrite rules for custom post type

There is a nonhierarchical custom post type "news". /news/ /news/page/2/ /news/post_slug/ Each post has custom field "views". When someone opens post, field's value increased by one. Would like ...
2
votes
2answers
3k views

Removing taxonomy base using WP rewrite

I´m trying to create the following URL structure: example.com/attractions <-- post type archive example.com/attractions/taxonomy_term <-- taxonomy archive ...