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

Remove subfolders from URL

I am having a tough time removing the subfolders from the URL in my WordPress site. Currently, the URL format is: www.mysite.com/subfolder/index.php/category/postname I would like to remove both the ...
0
votes
1answer
43 views

Rewrite rules goes away

I have a strange issue. The custom rewrite rules are registered correctly in my plugin activation hook. But, if I go to the permalinks settings page and clic on "Save changes" I lost the rewrite rules ...
3
votes
1answer
192 views

Why would Wordpress use 'attachment' in a custom post type's query string?

Why would Wordpress use 'attachment' in a custom post type's query string? Albeit I have a slightly contorted structure in place, I can't seem to find where 'attachment' comes into play and how to ...
0
votes
1answer
595 views

Image Attachment Url Rewrite

I'm having an issue with url rewriting for a theme I'm making, which is basically a gallery theme based on the roots theme. Here's how the site navigation works: Home Page (With Tiled Image Gallery) ...
2
votes
2answers
645 views

Custom query variable - get wordpress to redirect to nice permalink url

I have been looking for an answer for the last couple of hours but could not find anything pointing me in the right direction. Some advice would be very much appreciated! What I already have: A ...
0
votes
1answer
254 views

Permalinks for Taxonomy and Custom Post Type

Have the following situation here: Custom post type: 'recipes' Taxonomy for custom post type 'recipes': 'receitas' One of the taxonomies slug: 'receitas-whoopie-pie' The permalink structure MUST be: ...
0
votes
0answers
29 views

Wordpress permalink need taxonomy after postname

I got a problem with wordpress permalink. The site below is using directorypress theme, I need to to show the post url in this format post-name/state/city where country->state->city are in parent ...
0
votes
0answers
16 views

Rewrite author_name to color [duplicate]

I'd like to rewrite author_name to color. So example.com/?author_name=blue would be example.com/?color=blue I searched for hours but can't find anything useful. Any ideas?
0
votes
0answers
85 views

Using www and without www url both for same site

Site URL is lgagro.com.sg; currently, if browsed without www., it redirects to www.lgagor.com.sg. I want to access it with and without www i.e. when I browse it by http://lgagro.com.sg it should work ...
1
vote
2answers
130 views

Is slug “type” reserved and can't be used in taxonomy rewrite?

I desperately need your help guys. I am trying to register custom post type and taxonomy the following way: add_action( 'init', 'product_catalog' ); add_action( 'init', 'product_type', 0 ); function ...
0
votes
1answer
66 views

Custom permalink variable on single post

I'm trying rewrite url for permalink on single post my permalink: /%postname%/ My single form: http://example.com/abc-def/?chapter=1 adc-def mean: %postname% i want permalink is: ...
0
votes
0answers
64 views

Filter search result by author and include to meta tags

I need to filter the search results by author. This works fine: domain.com/?s=something&author=5 But how can i filter the posts by author "nickname" or "user_nicename" and maybe rewrite ...
0
votes
0answers
25 views

Custom Post Type Permalink Below Root Directory

I have wordpress installed in the /blog/ directory on my web server, so the WordPress homepage is at, for example http://www.example.com/blog/ I am creating some custom post types for content ...
0
votes
2answers
78 views

Why does my URL keep returning 404 error code?

I have a custom type on my wordpress site called 'movie'. If the user type this URL : http://mysite.com/1994, I would like to display all movies published in 1994. Unfortunately, I get a consistent ...
0
votes
2answers
249 views

How to Change Author Posts URL

How can I display an authors archive by author id instead author slug like http://example.com/author/author_slug/ to http://example.com/author/123/
0
votes
0answers
73 views

How to create single static page extending another URL

I have existing URL game/ninja-cat-and-zombie-dinosaurs/ which is created by rewrite: game/([^/]+)(/[0-9]+)?/?$ It leads to a custom post type (defined by theme Swatch). Now I'd like to have a URL ...
0
votes
2answers
246 views

WordPress Rewrite rule is not working

I am trying to create a rewrite rule for one of my custom page and here is the rewrite rule function add_my_rule() { global $wp; $wp->add_query_var('name_state'); ...
0
votes
0answers
32 views

Custom Multiple Endpoints

Any pointers on the right way to handle multiple endpoints for a Wordpress Page? For example lets say my current page is example.com/gallery When I want the same page to render differently when ...
3
votes
1answer
129 views

Query Vars for the Homepage?

I'd like to make the homepage accept query vars for year, month and date while still keeping the custom permalink structure for the rest of the site. Basically the homepage needs to display several ...
0
votes
0answers
37 views

Double permalinks for custom type post

I have custom type post named 'team' as follows: add_action( 'init', 'my_team_members' ); function my_team_members() { register_post_type( 'team', array( 'labels' => array( 'name' => ...
0
votes
0answers
49 views

Use custom clean URLs for a plug in

I've created a plug in that displays a list of items from the database. I need to link from an item to the item description page, however instead of the link looking like: ...
0
votes
0answers
77 views

URL rewrite rule not working for wpmudev Q&A plugin

I have installed the wpmudev Q&A plugin on my localhost wordpress test site. The problem I have now is that the the url localhost/questions/ask/ redirects to localhost/ and does not display the ...
0
votes
0answers
38 views

Url rewriting work only on the index

First, I register a variable named "bouquet" using this function & this filter: add_filter( 'query_vars', 'bouquet_query_vars' ); function bouquet_query_vars( $query_vars ) { $query_vars[] = ...
0
votes
1answer
172 views

Dynamically generated URL and Content page

I am in need of some advice. I have a section on my home page dynamically pulling in a list of terms from a custom table in the WP db. I have made a unique custom URL for each of these terms based on ...
-2
votes
1answer
83 views

Pagination on custom post type not working

I'm having a hard time getting pagination to work with my custom post type query. The standard "previous_posts_link()" and "next_posts_link();" aren't working. And through a bit of testing, I've ...
0
votes
0answers
26 views

Help with rewrite rule

I have a probleme with a rewrite rule. On my page, I have a link to : mySite/pubmed/article/23919219 I would like to convert it to http://example.com/index.php?page_id=165&article_id=23919219 ...
0
votes
1answer
50 views

WordPress index page is returning 404 and admin page requires /index.php in url

My WordPress installation is in a different folder from my main site: /var/www/html/wordpress <= WP installation /var/www/html/main-site <= main site I would like to have WP display when ...
0
votes
1answer
55 views

Change Wordpress comments url / word

Is this possible? For example, I want to change http://mysitesitesite.com/post-name/comment-page-1/#comment-452 to http://mysitesitesite.com/post-name/custonname-1/#customname-452 What should I ...
0
votes
0answers
93 views

Select good template with rewriting rules

After creating the sub page "China" of the parent page "Destinations", I add to it the "Destinations countries" template. Without any redirection, I can display the correct template at this url : ...
0
votes
1answer
56 views

Why is a rewrite rule in wordpress prevent pagination?

I have a custom page that uses a rewrite rule. The "non-pagination" rewrite works fine: add_rewrite_rule( '^brand-list/([^/]*)/([^/]*)/?', ...
0
votes
0answers
38 views

Custom site-wide url redirect

What would be the best way to go about this situation: I have a site that I want to allow other people to link to, but then keep their links maintained across the entire site. So say, if I was a ...
2
votes
2answers
80 views

When is it a good idea to build a permalink structure from scratch?

Is it a good idea to design a permalink structure from scratch? The requirements to the structure are as follows: Pages to be referenced by their structure ...
1
vote
1answer
98 views

Random Alphanumeric Key URLs

I need random (and unique) alphanumeric permalinks. I've looked at several plugins but they all seem to do some form of redirection to a longer URL. That's not what I want, I want the permalink to be ...
0
votes
0answers
43 views

How Can I rewrite *.neo to /$1/ with NGINX

This is my htaccess I have my old URL like http://www.xxx.com/article-name.neo, and I want to redirect it to http://www.xxx.com/article-name/ Any help? RewriteEngine On RewriteRule ([^/]+)\.neo$ ...
0
votes
1answer
157 views

A change in URL slug in database returns 404, how can I do auto-redirect?

I have a huge blog with over 10K posts and a lot of posts with some adult keywords in titles, urls, content and tags. I am trying to remove all adult ones with "search and replace" plugin. It works ...
0
votes
0answers
24 views

Is this website made using WordPress? [duplicate]

I have this web site URL: http://www.erusma.org that is a multilanguage website, infact opening this URL I obtain the following address: http://www.erusma.org/en/default.html Looking at the source ...
1
vote
1answer
397 views

Add .html extension to custom post type taxonomies

I want to have the .html extension in the custom post type taxonomy urls. My custom post type taxonomy it is called "product_cat". I will need something like: ...
0
votes
1answer
20 views

2nd and 3rd Custom Post Type URL's 404ing

My first CPT saves its URL's exactly as expected. However, I have worked for 2 days on getting my second and third Custom Post Type URL'S to rewrite correctly. They do in fact save as expected in ...
0
votes
0answers
29 views

Customized wordpress permalinks

Posted on SO earlier but was referred to post it here rather. I have searching it for a while, but can't seem to be able to find anything substantial. Consider the following URL pattern ...
0
votes
1answer
220 views

Using add_rewrite_tag to create urls for page sections

I am dividing my page templates into linkable regions. I'd like to be able to use clean urls to do so. My page urls look like so www.example.com/page-name/?section=example I'd like to rewrite the ...
0
votes
0answers
54 views

External/non-WP rewrite rule without QSA

I'm trying to add a new external/non-WP rewrite rule to my .htaccess but WP keeps adding [QSA,L] to the end of the rule. How do I prevent the QSA part? This line adds the RewriteRule: ...
1
vote
0answers
30 views

Specific routing for CPT

I'm developing site for art gallery. A have Artist CPT (internal name artsin_artist) which is defined in my functions.php like following: register_post_type('artsin_artist', array( 'labels' => ...
0
votes
0answers
79 views

author / profile url without slug

is it possible to make users profile / author url like domain.com/username? I have tried to set "user" instead of "author" as a slug and use the following code in htaccess: RewriteCond ...
-1
votes
2answers
167 views

Custom url rewriting

I am struggling to create custom rewrite rules for wordpress. This is my url structure http://domain/cityprofile/?city=Sydney where city profile is a page template. Now i want to make this url ...
0
votes
0answers
44 views

Rewrite/append all URL's with variable if user logged in

I need to add a variable of the username to all of my URL's when the user is logged in. So for example it would be: www.example.com/?user=user1 www.example.com/category1/product1/?user=user1 The ...
0
votes
2answers
41 views

change the url in wordpress

I'm creating a wordpress website, And i have created "News" custom post type with taxonomy. My archive page URL is www.yourwebsite.com/news/ and taxonomy page URL is ...
1
vote
0answers
120 views

Multiple post categories - single permalink

I created a post which is assigned to multiple categories. Eg: I have a post "My Post", and I put it in "foo" and "bar" categories. Now my article will have two permalinks, "/foo/my-post" and ...
0
votes
0answers
106 views

Changing a custom post type “has_archive” after registered

Ok, I've seen some similar posts on how to change a custom post type's attributes after it has been registered (in my case, I'm trying to modify a custom post type created by a plugin without ...
0
votes
0answers
26 views

Correctly Rewrite Register Page

I have attempted to make it so that users can register on my site as follows: www.domain.com/register I have done this by adding the following line to my .htaccess file: RewriteRule ^register/?$ ...
0
votes
1answer
51 views

WP Rewrite for a custom variable

I know there are dozens of posts on this, but (I'm embarassed to say this) I'm having a rough time following them. My goal here is to have /resources?audience=teachers become ...