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
23 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
83 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 ...
1
vote
0answers
124 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
70 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
34 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
50 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
60 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
18 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
94 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
32 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
34 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
120 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
31 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
82 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
23 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
88 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
93 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
54 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
40 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
22 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
59 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
29 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
70 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
14 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
14 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
64 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
212 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
62 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
38 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
46 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
88 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
66 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
52 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: ...
0
votes
3answers
55 views

Update permalinks

I have added custom "folder" named Srpski to my permalink structure as you can see in .htaccess file below. So in WP Dashboard > Settings > Permalinks my custom permalink structure looks like this: ...
0
votes
1answer
134 views

WP is ignoring .htaccess rewritten URL

I have two domains being served from the same WP install. edit: not multi-site In wp-config.php I have define('WP_SITEURL', "http://$hostname/wordpress"); etc. The two domains will have similar ...
0
votes
1answer
54 views

Losing the original URL when using add_rewrite_rule

I'm attempting to implement a rewrite rule so I can introduce a variable into my CPT's single page template. Basically I'm trying to include 'all' between my CPT's slug name of work and the category ...
0
votes
0answers
26 views

Rewrite URL based on form input

I have a form: <form action="<?php echo get_permalink(); ?>" method="get"> <select name="genres[]"> <option value="jazz"></option> <option ...
0
votes
0answers
79 views

Change search permalink slug to e.g. /tutorials/search/searchterm

I want to rewrite the ugly /?s=searchterm to /tutorials/search/searchterm It's a multisite, so I want to make this multilingual. How can I accomplish this?
1
vote
0answers
76 views

Help writing custom function with rewrite endpoint that generates a page from dynamic content

I'm creating a WordPress plugin that will pull content from an API and display it dynamically on a WordPress blog like it's native content. An example of this content would be company locations. I ...
0
votes
1answer
89 views

Custom Structure permalinks error 404

i have changed the wordpress custom structure permalink to /%post_id%/%postname%/ and get this error : 404 Not Found The requested URL /mysite/blog/1/hello-world/ was not found on this server. ...
0
votes
0answers
71 views

How to make a custom route with any-string-part/number-part pointing to an existing page?

I've got a page with my own widget inside of it which needs some params from the url to produce dynamic db results - don't worry everything is sanitized well and I only let this part out to keep this ...
0
votes
0answers
224 views

add_rewrite_rule not working

I'm trying to do some url rewriting. I've picked this example right off the wordpress wiki here: add_rewrite_rule('^nutrition/([^/]*)/([^/]*)/?','index.php?foo=bar','top'); The wiki page says: ...
1
vote
1answer
159 views

How to set up Author archives with sub category URL

So i have a site where i have used the authors.php page so that i can display individual user's profile pages.. the url then looks something like: http://mydomain.com/author/test/ What i would like ...
0
votes
1answer
67 views

URL Rewriting if it is a single post / redirecting post - post type

I have a unique kind of question that I've been wrapping my brain around. Google is penalizing us with duplicate content because you can access our single blog posts both by going to: ...
0
votes
2answers
44 views

Do WordPress Permalinks Refer to a Lookup Table in the Database?

I'm trying to figure out how to rewrite URLs while dropping the original parameter (whether it's a number or text); basically exactly what WP does with it's clean permalinks Does a database lookup ...
1
vote
1answer
88 views

'rewrite_rules_array' or 'generate_rewrite_rules' for adding custom rewrite rules?

Is there any reason why I should use rewrite_rules_array instead of generate_rewrite_rules? generate_rewrite_rules works out of the box, but I couldn't get rewrite_rules_array to work. And I am told ...
0
votes
0answers
81 views

WP Multisite URL rewrite static content folder

I have a WP multisite installation on the root folder. one of the sites have a subdomain subdomain.mysite.com in the root folder there is a sub directory called /subdomain-static folder ...