Rewrite rules modify a web URL's appearance. This modification is called URL rewriting. Rewritten URLs (sometimes known as short, fancy URLs, search engine friendly - SEF URLs, or slugs) are used to provide shorter and more relevant-looking links to web pages. The technique adds a layer of ...

learn more… | top users | synonyms

0
votes
2answers
275 views

Wordpress in “Couch Mode”?

I am trying to setup a "Couch Mode" (distraction free reading) on my WordPress blog as laid out in this article. The guide in the article follows these steps: Create a new page in WordPress with ...
0
votes
1answer
464 views

How to use wp rewrite to hide form action url?

I have a widget that I'm making that builds a multi-step form which retrieves xml data from a third party plugin (http://xmlplugin.com/geoquote.php). While this plugin is available for use already it ...
0
votes
2answers
48 views

How to get a Custom 500 Error Page to show?

I created a 500.html file and would like to get this page loaded for my wordpress site. I'm running on XAMP localhost for now, but I've never done this sort of thing before and would like to be able ...
0
votes
3answers
494 views

add_rewrite_rule not working for me

I have the following rewrite tags defined: // ADD REWRITE TAG FOR 'VEHICLE MAKES' add_rewrite_tag('%make%','([^&]+)'); // ADD REWRITE TAG FOR 'BODY STYLES' ...
1
vote
2answers
571 views

Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess

For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
0
votes
0answers
11 views

Custom rewrite rules on custom posttype

I've got a problem presented to me by a client which I can't seem to fix. They have a Wordpress website with a custom posttype 'projects' This custom posttype has a custom taxonomy 'categories' What ...
0
votes
1answer
14 views

Wordpress URL rewrite after changing web from Joomla

There is a website which was previously run on Joomla. URL structure of Joomla links was index.php/site , index.php/another-site. After changing to WordPress no page is not accessible from Google, I ...
0
votes
1answer
19 views

how to use two permalinks for one custom post type based on categories

I am trying to get 2 different permalink for one custom post type, based on the solution given there. It is working for articles, but I can't get it work for my "film" custom post type. Here is my ...
0
votes
0answers
33 views

Page URL with variable (URL rewrite)

I'm new to this Wordpress & right now I tried to rewrite a specific page that have variable with it. First of all let me explain. I have a page that will retrieve all loggedin user info in a page ...
0
votes
1answer
35 views

Adding a rewrite rule to page that has no fixed variables and pagination

Ive set up a page that users can search posts by tags, four categories, for example. By Room - By Style - By Colour - By Feature, each has an undefined number of sub categories, depending on how many ...
0
votes
0answers
24 views

How to allow specific URL

I need a little bit help on WordPress URL. In Wordpress Backend, I have One page and the page slug is: listing-detail When I try below URL into the browser it's working as per my expectation. ...
0
votes
1answer
25 views

/page/ is not working with a custom permalink structure (WooCommerce)

I am running WooCommerce and FacetWP on a WP 4.5 install. I have set the permalink structure of the "Products" to the following, the custom taxonomy is a location based taxonomy. ...
1
vote
3answers
493 views

Custom post type paging 404 error

I've an issue on custom post type, I've create a custom post type called "Agenda" and the rewrite url for http://example.com/agenda it works correctly, it points to the archive-agenda.php template ...
0
votes
1answer
22 views

Custom URL rewrite with add_rewrite_rule

I am trying to create the SEO friendly URL: http:///foto/linse2-at/linse2-at-schloss-altenhof/2618 for this one: http:///?fotograf=linse2-at?gallery=linse2-at-schloss-altenhof&img=2618 For my ...
0
votes
0answers
6 views

Are the submission rules/guidelines for this forum posted anywhere? [migrated]

A question of mine in this forum was edited by a moderator. A couple of the edits seem a bit non-standard. So I would like to know if there is some reference I can consult before posting, so I know ...
0
votes
0answers
25 views

WP add_rewrite_endpoint - custom post types destroys permalink URL match

I'm trying to implement AMP-versions to Wordpress posts with a custom plugin. The problem I'm having is that we use a bunch of different post types. They all have their own permalink structure. For ...
1
vote
1answer
495 views

Add a query string to ALL links on site

Our client would like to embed his site into an iframe in their software backend. I get a query string on the first link but need to make sure that string persists across URLs for all links and ...
0
votes
0answers
7 views

Problem with Author page redirect

When trying to access the author's page (i.e. example.com/author/john) I am redirected to Woocommerce's shop page, however, if john is an admin, then I am redirected to author.php page correctly... ...
0
votes
0answers
23 views

Multiple Post Types and Multiple Taxonomies Issues

I have multiple CPTs that all have multiple taxonomies. The problem I am running into is some of the taxonomies are the same between the different CPTs. This ends up resulting the in the same URLs. ...
1
vote
3answers
820 views

Pagination: /tags/tag_name/?paged=2 gives a 404 error

I need to paginate an archive page. Pagination works perfectly fine for everything except tag/category archives. Basically if I use /tags/tag_name/?paged=2 it gives me a 404 error. But if I use ...
1
vote
1answer
423 views

Custom Post Type Rewrite To Include Parent Page(s)

I have a page title "more" with subpage "cities-guide". Said "cities guide" page has a loop that pulls in posts from custom post type "thailife_city_guide". My permalink structure is ...
0
votes
1answer
463 views

permalink and add_rewrite_rule - error 404

I'd like to have comments in a separate page with a dedicated template only for posts in a specific category (slug shops). Example: mysite.com/post-incatshops --> mysite.com/post-incatshops/comment ...
1
vote
2answers
52 views

Permalink structure CPT with custom taxonomy fails

I'm getting quite frustrated setting up the correct URL structure for a CPT with a custom taxonomy. I have a CPT called 'courses' with a custom taxonomy called 'course type'. The url structure ...
1
vote
1answer
59 views

Intermittent 404 errors, rewrite rules, and BBPress

I am trying to debug an intermittent 404 issue that may be related to BBPress. I’ve read several other reports about intermittent 404s and BBPress, but none of them are exactly applicable to my ...
0
votes
1answer
958 views

HTTPS to HTTP rewrite rules not working as expected

I'm struggling at getting these rewrite rules to work and was wondering if someone can point out my error(s). The following should redirect a user to HTTPS if they are at the login page or in the ...
0
votes
1answer
48 views

Wordpress custom post type rewrite rule matches all pages returning 404

I've created a custom post type with a rewrite to use the grandparent relationship as the URL like so: function cpt_child(){ $args = array( //code 'rewrite' => array( 'slug' => ...
0
votes
1answer
34 views

Rewrite CPT child page URL to support query var

I am having some issues with rewrite rules. I have a URL like this: http://www.domain.com/post-type/parent-page/child-page/section-id Which I want to treat via query vars like ...
0
votes
1answer
680 views

Custom url structure - pages under a custom post type

I'm struggling with the structure of my Wordpress site and I was hoping you might be able to give me some advice. The site is for a series of events and the structure is as follows: Gateway ...
0
votes
0answers
26 views

How do I generate 301 redirect?

I am working on the function which is supposed to add 301 redirect when the permalink gets changed (for example, when we change categories structure). The idea behind is to keep the old URL in a meta ...
1
vote
4answers
713 views

Flush Rewrite Rules when new site is created on network

I am working with a multisite setup and I have created some custom post types, which seem to work fine except when trying to view any of the post types pages on the front end, I get a white screen. ...
0
votes
0answers
31 views

Dynamically Change Base Permalink Prefix For Custom Taxonomies (Categories)

I'd like to change/modify the permalink structure for the standard and custom post-types and taxonomies, such that the base being prefixed to the permalink dynamically changes for each post-type and ...
1
vote
1answer
21 views

How to handle this URL Structure. Keep getting “page not found”

I have created two Custom Post Types, named "test" and "articles". I am trying to achieve below URL structure: site.com/test/post-title - for post type test. Works fine. ...
1
vote
1answer
46 views

Change permalink for a single post entry

I've defined a custom post type, projects, and I've set the permalink for those post types to /projects/my-project/. However, for one of the projects, I need to give it a special URL, so instead of ...
0
votes
1answer
16 views

page not found for example.com/custom-post-name

i have created custom post type: jobs custom taxonomy : jobs_division I wanted url like Custom permalink structure: /%custom-post-type%/%custom-taxonomy%/%post-name%/ I have registered custom ...
0
votes
0answers
16 views

Help with custom posts being rewritten to standard posts

I am having a bit of an issue with custom posts. My setup is WP4.4 with the following plugins: Yoast SEO Toolset Types Custom Post Type Permalinks I am rebuilding our company motorcycle website ...
0
votes
2answers
16 views

Adding Rewrite URL for Base + Children Separately

I have a main page and beyond that it has children. I successfully rewrite the children like so: add_rewrite_rule('my-url/?([^/]*)', 'index.php?my-var=$matches[1]', 'top'); This works great. But ...
1
vote
2answers
1k views

WordPress keeps writing rewrite rules to .htaccess

WordPress keeps writing rewrite rules into .htaccess again and again till it causes an error and causes server to return 500 Internal server error... i.e. My .htaccess is a series of # BEGIN ...
1
vote
1answer
31 views

Help with rewrite rules for two post types

I'm trying to setup two rewrite rules for two post types. Basically, the structure I want is this: site.com/app/course/xxxx/ => adds query_var course site.com/app/course/xxxx/theme/xxxx/ => adss ...
0
votes
1answer
30 views

Multiple query vars sorting combination and url rewrite

I have a custom search page for a custom post type ('program'). There are 4 parameters that can be set up for this search: 'word_search', 'archived', 'category' and 'operating_system'. We can search ...
0
votes
1answer
25 views

Wordpress CPT slug and page slug conflicts

I have one page slug "new-site" also i have another custom post type with same slug "new-site" while i browse site http://example.com/new-site then it directally goes to archive page and show all the ...
0
votes
0answers
25 views

Custom Permalinks for posts with custom taxonomy

I have kind of a unique problem with permalinks and a custom taxonomy that I can't seem to find the answer to. I have created a custom taxonomy called "content_type" which is attached to the "posts" ...
0
votes
0answers
14 views

The Loop doesn't work when using RewriteRule

I am using .htaccess RewriteRule on my page. When user goes to /news RewriteRule actually loads /?nav=news On that page, I use The Wordpress Loop to show recent posts if (have_posts()) { ...
0
votes
1answer
29 views

Add custom query vars to pretty permalinks

I am creating a wordpress plugin where i have some custom query strings appended with the urls to achieve the desired functionality.I require pretty permalinks like post name in the wordress settings. ...
0
votes
2answers
30 views

rewriterule not working

I have post type example with 2 records: exam1 and exam2. This post type was created by plugin Types Toolset (www.wp-types.com). So link to exam1 looks like my_site/example/exam1. Also I have 1 ...
0
votes
1answer
29 views

Rewrite URL for a specific taxonomy [duplicate]

I registered a post type of 'product', and also registered a taxonomy 'poruct-cats' for this post type. When I want to access to product-cats it seems like below: ...
0
votes
0answers
30 views

Modify custom taxonomy permalink to allow 2 additional parameters?

I have a custom post and taxonomy set up. The only section I have in my website are taxonomy archives. The archive page lists the posts from the current taxonomy term. Each post is viewed in a modal, ...
0
votes
0answers
17 views

flush_rewrite_rules with wp_cron

I'm trying to build myself a plugin for remote viewing data of all my WordPress installations in one overview. Therefore I'm generating a list using xmlrpc to remote connect to all the WordPress ...
4
votes
2answers
183 views

permalink independent on the post's name stored in the database

I'm trying to make a custom permalink structure for my posts. www.example.com / post / %post_id% / %posttitle% / In this permalink, the post's ID comes first, then the post's title after it. ...
1
vote
2answers
54 views

Remove base slug in CPT & CT, use CT in permalink

I've come quite far, but can't manage to get this to work. I'd like to remove the base slug from my Custom Post Type review and my Custom Taxonomy brand. The final result should be a URL like this: ...
6
votes
1answer
165 views

Best way to flush_rewrite_rules for custom post type, in a mu-plugins plugin?

I am writing a plugin that instantiates a custom post type (among other things). It is a multisite plugin and lives in the directory mu-plugins. What is the best practice for handling ...