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

Wordpress comment for URL rewritten pages

I am rewriting URL like this product/product-category-name/product-name Here product is the real wordpress page, the rest are generated by database query. So, there is only one comment section which ...
0
votes
0answers
114 views

flush_rewrite_rules vs $wp_rewrite->flush_rules

I have been trying to flush the rewrite rules whenever admin chooses to change some value which needs rewriting. I first tried flush_rewrite_rules(true)(hard flush) which didn't work. Then I tried ...
1
vote
2answers
166 views

Filter to change the content of 404 page

I have created custom rewrite rules. These rules now go to 404 page as expected. I can use action hook template_redirect to change the template matching query_var. But I don't want to create separate ...
1
vote
1answer
311 views

Custom rewrite rule for backend/admin?

I would like to create a custom rewrite rule that will take the URL: http://domain/submit-project/add but display http://domain/wp/wp-admin/post-new.php?post_type=project Is there any way to do ...
0
votes
0answers
42 views

How to put a Custom Folder under one sub-site of Multisite WP?

I have a multisite wordpress and i'm now trying to have a custom directory under 1 of the sites of the multisite. Example: http://apple.example.com http://banana.example.com/myfolder ...
2
votes
0answers
67 views

web.config conflict on IIS

folder structure docroot |- wordpress |- web.config |- wp-content |- japi |- index.php \- web.config ... ... As you can see there are 2 web.config ...
0
votes
0answers
41 views

How to add taxonomy into URL of single custom post type

I have the following url of each custom post type Portfolio/titleofcustomposttype Portfolio/othertitleofcustomposttype But, i have already taxonomy for each post, and i want it to be displayed in ...
0
votes
0answers
100 views

WP redirects pretty permalink to query string

I have a custom post type artist and a taxonomy kind_of_art. I want their permalinks to be like: %kind_of_art%/%artist% Therefore I created following rewrite rules: add_rewrite_rule( ...
3
votes
1answer
106 views

Prepend meta_value to permalink of post

I have 2 custom post types movies (non-hierarchical) and series(hierarchical). Each post from seriestype has a meta field _movie which contains a movie ID. I want to specify a custom permalink ...
3
votes
5answers
227 views

Update URL Snippet to Canonical Permalink URL

My permalinks is in the format domain.com/post-id/post-slug I notice this is a great choice for permalinks as I can share articles with a short URL like domain.com/123 But when I go to this short ...
0
votes
0answers
31 views

Using a default CPT archive slug as a page and using a different URL for the archive

I want to have a custom post type whose "slug" also shares the name on a core page. Basically because I want to give said page more custom look and look nothing like an archive (it don't need ...
0
votes
0answers
84 views

URL Rewrite breaks pagination on some permalink structures

i created some rewrite rules for my profile page with multiple tabs. Member and tab names are passed via url to the page template. Everything works fine except for the pagination. When a permalink ...
1
vote
1answer
72 views

Is a permastruct possible on pages?

Since a couple of weeks I'm trying to create my own rewritings on pages. I read a lot about rewriting with posts and custom post-types. BUT: I have pages that I call with variables. How is it ...
0
votes
1answer
31 views

Customize category URL

I've searched around and have not found the answers im looking for. By default I have: example.com/blog (blog archive) example.com/blog/entry (single entry) example.com/blog/category/announcements ...
0
votes
0answers
37 views

Permalinks not working when bootstrapping from parent directory

I am trying to use WordPress from a subdirectory but access it from its parent. This is on order to try Capistrano deploys. I have the following directory structure index.php .htaccess /wordpress ...
0
votes
0answers
114 views

url_to_postid redirected posts

i wanna url_to_postid some urls, it work pretty fine but when it come to auto-redirected posts it fail to return postid. here is my example urls: http://animup.net/anime/kuroko-no-basket-2/ auto ...
2
votes
1answer
275 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
72 views

Wordpress permalink still not working (error or not understood?)

After hours in understanding wordpress permalinks I'm despairing and hope that somebody can help. I have the following link: www.mysite.com/?page_id=923&bahn=BER After activating the ...
0
votes
2answers
37 views

Change /search to /somethingelse

How do I change the search url? I already have something like: /search/keyword But I want to change /search to something else. How can I do it? Thank you!
1
vote
2answers
60 views

Changing Permalinks for Default Post type to reflect navigation

I have a particular issue with setting the permalink structure for "posts" on my website. Right now, I have the default "posts" page living under www.mywebsite.com/news-events/current-news/ I'd like ...
2
votes
1answer
73 views

Multisite wordpress and subdomain URL collisions

I have a multisite WordPress installed on a server using a domain, site.com and I have a subdomain setup in WordPress, so subsites are at sub1.site.com, sub2.site.com etc. In addition to this, the ...
0
votes
0answers
20 views

Rewrite rules for custom post type with another custom post as post parent

I have 2 hierarchical custom post types sale and lot. Each lot belongs to a single sale (the sale ID is used in post_parent. I need URLs like website.com/sale/sale_name/lot/lot_name. So far I have ...
0
votes
0answers
152 views

Custom URL structure with external web service

I have WordPress site which displays content from database, but I also want to consume .NET web service hosted on the Windows Azure and fit the content inside the WordPress. URL structure of ...
0
votes
1answer
36 views

Editing the variables in a custom URL

I have an existing page in a custom theme that expects a URL in this form: /story?user=1 but I'd like to be able to use better URLs as well, eg: /story/username. I've tried to add a rewrite rule in ...
0
votes
0answers
47 views

How can I redirect all wordpress tag subdirectory (subfolder) to another one (archives/tag)

I changed my permalinks and it working fine but I need to redirect old tag folder to archives/tag to not lose links which google indexed below is my .htaccess file in the root of my recipes site ...
1
vote
1answer
221 views

Multiple Permalinks for Same Post

I'd like to be able to have multiple permalinks for the same underlying post (for i18n reasons) - eg http://www.example.com/my-custom-post-type/this-is-a-cool-article ...
0
votes
0answers
50 views

Rewrite CPT permalinks with 'Post 2 Posts' connection

I have 2 CPTs titled 'Songs' & 'Artists' that are connected (Artists → Songs) via Posts to Posts Currently, the permalink structure for 'Songs' is www.my-site.com/songs/%postname% What I would ...
0
votes
0answers
20 views

How to do an URL rewrite

I'm trying to rewrite my URL structure. I want to delete the parents in my URL. So for example www.test.com/parent1/child should become www.test.com / child and www.test.com/parent1/parent2/ should be ...
0
votes
1answer
106 views

Custom Post Type Rewrite Rule

My theme uses the following code: 'rewrite' => array('slug' => $this->safe_name . '-detail'), which produces this slug: http://www.example.com/estate-detail/4-bedroom-property-for-sale/ ...
0
votes
0answers
26 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
203 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
240 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
70 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
94 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
29 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
77 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
102 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
19 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
24 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
84 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
627 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
72 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
54 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
130 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
145 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
105 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: ...