Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"
0
votes
1answer
37 views
How to show one page with two different templates
I have a page template that I want to be able to show in two different modes: a regular mode and a bare-bones mode, where there is no header, footer, sidebar, etc. My hope is that I can get this done ...
1
vote
2answers
126 views
How do I get rid of “category” from my URL structure?
By default WP links to a category like this, mydomain.com/category/travel. Having the word "category" appear in the URL seems unnecessary. I'd prefer have the link read mydomain.com/travel.
How can ...
3
votes
2answers
57 views
How to custom change author base without $this->front?
I have a sample code:
function change_author_permalinks() {
global $wp_rewrite;
$wp_rewrite->author_base = 'u';
$wp_rewrite->author_structure = "/" . $wp_rewrite->author_base . ...
0
votes
1answer
50 views
Creating a page for custom taxonomy archive
I have a custom taxonomy called 'news'. Inside it I have two categories called 'news-releases' and 'competition-news'.
Going to 'mydomain.com/news/competition-news' gives the expected result and ...
2
votes
1answer
119 views
Members area with externally-managed htaccess / htpasswd authentication?
I am looking at the feasibility of converting a client's site from countless hand-built web pages to a WordPress installation. The challenge is that we have a free area and a members-only area. The ...
0
votes
2answers
64 views
Rewrite function
I have a wordpress blog. I get url in blog like this,
http://www.domain.com/2013/01/test19/page/2/
But I want my ur like this,
http://www.domain.com/page/2/
So can we rewrite this url. I ...
0
votes
1answer
23 views
How can you preserve URLs when moving posts to a custom post type?
I am working on a site where they want to break up the content into custom post types (right now everything is broken up by post categories) but they want to be able to save their URLs to preserve ...
1
vote
0answers
47 views
URL endpoint with html
I'm using wordpress endpoints for render another template on a post page.
How can i add '.html' end of the url that using endpoint?
Example;
Normal URL: example.com/angry-birds
Normal URL with ...
3
votes
1answer
86 views
How do i change the search permanent links
I have 3 custom searches created using different templates.
The search results page loads different results depending on the referrer:
<?
/* Template Name: Search Results */
$search_refer = ...
1
vote
0answers
64 views
Custom post type's permalink adds the name of the post type before the post name
So I've create a custom post type which seem to work.
however the permalinks of the create posts has the name of the custom post type in-front of the post name.
I am getting addresses like:
...
1
vote
1answer
108 views
Rewrite ugly URL to clean URL
Im trying to go from:
http://www.example.com/product?level1=value1&level2=value2&level3=value3&level4=value4
To:
http://www.example.com/product/value1/value2/value3/value4
Sometimes ...
0
votes
1answer
31 views
My wordpress site must be being affected by outside sources [duplicate]
Possible Duplicate:
Error 310 too many redirects after switching domains
Some of my pages are resulting in 310 errors. We recently switched domains from kgstiles.com to ...
2
votes
1answer
90 views
Custom user profile URLs
I have created a page "profile" that when visited with get variable of user id like:
http://example.com/profile/?uid=1
Then it will display the profile details of user id 1. Now I want to rewrite …
...
0
votes
1answer
206 views
Why wp redirects me to wp-login.php when I visit a rewritten wp-admin URL?
I have this rewrite rule
^dashboard(.*) wp-admin$1 [L]
and wp redirects me to wp-login.php when I try to visit /dashboard (even if I am logged in)
Any idea why this happen, and how I can solve ...
0
votes
0answers
11 views
Rename /page/2/ to /seite/2/ [duplicate]
Possible Duplicate:
Change the “page” slug in pagination
This was already asked here:
rename 'page' URL fragment in pretty permalinks
But the solution produces a 404.
I would ...
1
vote
1answer
40 views
Organizing Your Pages
I'm having problems creating sub pages. So far I've followed the proper directions:
Go to a new page, click the "Page Parent" drop-down menu.
Select the
appropriate parent Page from the drop-down ...
1
vote
1answer
140 views
ReWriteRules and WordPress Multi-Sites with Sub Directories
I'm having a diffucult time getting the ReWriteRules and URL structures setup for a Wordpress 3.4.2 (latest version as of this post) blog with multi-site enabled.
www.ourdomain.com/ is the homepage ...
0
votes
2answers
58 views
Generating custom URL before post is published
I have implemented a post_type_link filter for my custom post and this is working great. However, the only downside is that the final URL only seems to be created when the post is published.
What I'd ...
0
votes
2answers
349 views
Rewrite Rules Are Redirecting and Not Passing VARs
I have the following code in my functions.php file.
<?php
add_action('init', 'flush_rewrite_rules');
function custom_add_rewrite_rules( $wp_rewrite ) {
$new_rules = array(
...
0
votes
2answers
637 views
How to disable the default WordPress redirect to non-www URLs?
I am trying to redirect all non-www to www URLs in my WordPress MultiSite install. I am using a simple .htaccess rule like this:
# Redirect non-www to www:
RewriteCond %{HTTP_HOST} !^www\. [NC]
...
2
votes
3answers
1k views
Multiple post types - share same ReWrite slug?
I've run into another wonderful 404 issue. I'm trying to have 2 seperate post types that share the same rewrite slug. I've flushed my rewrite rules, and when I test only 1 of the CPT works- the ...
0
votes
0answers
27 views
Custom post_type and custom taxonomy with permalinks like categories [duplicate]
Possible Duplicate:
adding categories to custom post type in permalink
I am trying to achieve separate categories for each custom post type so as not to mix them. The best way I have found ...
0
votes
1answer
563 views
Variables and custom permalinks using wp_rewrite [closed]
I want to get safe variables and clean urls using wp_rewrite.
Example:
/%category%/%postname%/?action=play
to
/%category%/%postname%/play/
Still can't find solution. Everytime get 404 error. ...
1
vote
0answers
24 views
URL Rewrite fires when retrieving a custom value?
I'm working on an old WP Multisite instalation (3.0.1) and something weird is happening.
The guy who built the site made a decision to store direct URLs instead of Post IDs to a Custom Field. And ...
3
votes
1answer
150 views
Sub domain redirection to taxonomy
Hi all I want to use sub domain for my taxonomy like that :
http://taxonomy.domain.com/apple map to http://www.domain.com/taxonomy/apple
I add this to my vhost
RewriteCond %{HTTP_HOST} ...
6
votes
2answers
316 views
Problem with add_rewrite_rule and pagination (paged and page query_vars)
I have a custom taxonomy named location and I want to add sections like 'news' and 'marketplace' for each term, so my url looks like /location/montreal/news/
It works perfectly until I try to add ...
3
votes
4answers
1k views
Relative URLs and hide /wp-content/themes/
in my header and other sections I would like to use
<script src="/incs/js/script.js"></script>
While maintaining the default theme folder structure in server as below
...
2
votes
0answers
43 views
Use single-site install and map entities to subdomains
Not sure if this is a pipe-dream, but I am interested in the URL rewriting capabilities (and DNS mapping) of a single-site WordPress install.
Typically in a WordPress MU setup, we'd use WordPress Mu ...
8
votes
4answers
997 views
Remove custom post type slug from URL
Haven't found a useful answer for this. I am aware of the conflict issues and all the problems this may cause, I'm curious if it's POSSIBLE not SUGGESTED. This will require WP rewrites, I know this ...
0
votes
1answer
57 views
Virtual Page with Registration form
Working on a plugin, which is intended to provide a registration on front-end, to let users register.
I am trying to create a Virtual page, which would display the form.
Trying to create URL like ...
0
votes
1answer
51 views
URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation
I'm sure there has to be some way to make this with single wordpress instalation. Posts for "learn" page are tagged with "learn" and I built a custom template that has loop that prints only posts from ...
3
votes
2answers
533 views
Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
(Moderator's note: Title was "Convert into nice URL a shared custom taxonomy URL with a query string value")
I have a custom taxonomy template: taxonomy-country.php used by two (2) Custom Post Types: ...
1
vote
1answer
85 views
How to rewrite custom post type URL for multiple depths instead of one specific depth
I got this code that rewrite the url's for custom posttypes. It works but only for a depth where the posttitle is on the 5th segment.
How can i adjust it so it accepts multiple depths?
e.g.:
...
1
vote
2answers
71 views
a one-off rewrite rule
I have one page that I need to change the URL for.
Currently, the page resides at example.com/departments/human-resources/
(human-resources is a sub-page of /departments/ )
My client wants to ...
1
vote
3answers
2k views
Mapping multiple URLs to same page in wordpress
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
217 views
404 permalink errors on Pages only
I am having a strange issue with permalinks while using the /%postname%/ structure.
I can access my custom post types using the pretty permalink localhost/cpu/<post-type>/<post-title>/ ...
0
votes
1answer
22 views
URL to an image in a post is changing when permalink is set to custom. Can I avoid this?
I have a buy-button image set in all posts on the entire site. When permalink settings are default the URL to that image file is www.mydomain.com/images/buy-button.gif. When permalink settings are ...
1
vote
2answers
2k 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
...
1
vote
1answer
292 views
WordPress custom URL Rewrites redirecting not masking
I have the following code that exists in a plugin that is meant to take a request to the url /stores/directory/foorbar/ and pass foobar as a GET variable:
function pcrr_rewrite_rules($a) {
$k = ...
1
vote
0answers
84 views
Custom category URL rewriting
Here is the situation: let say I have a page called Press and that page has this url: www.example.com/press-center
Now, let say that I have a category Press (slug is press) and subcategory called ...
0
votes
1answer
60 views
region selection
I'm developing a website, where the visitor has to choose it's region Europe / Asia, according to this choice the menu should be different, (most pages are the same).
When I would develop this in ...
1
vote
0answers
48 views
404 error using Meta for Permalink rewrite
I'm trying to rewrite my permalinks using meta data from my post. The permalink rewrite works fine but I'm getting the 404 error when I try to view the post.
Could someone offer a clue as to why this ...
0
votes
2answers
103 views
How do I make WordPress revise an .htaccess file a certain way?
I've learned just a slight bit with WordPress Rewrite API -- just enough to add another rewrite rule for a plugin. The plugin works if installed in the root, but I'm finding that if one installs ...
2
votes
0answers
89 views
Enforcing canonical URLs with multiple custom post types
I'm working on a project with several custom post types, where one of the post types is naturally (but not actually in the WordPress sense) the 'parent' of the others. For example, say I have a ...
2
votes
1answer
6k 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" ...
0
votes
0answers
110 views
.htaccess redirect from www to non-www does not work [closed]
I haved inserted a -usually perfectly fine operating- htaccess condition and rewrite into my standard wordpress .htaccess file in order to redirect to a non-www url when www is prepended. It does not ...
0
votes
1answer
367 views
Setting up .htaccess for subdirectory [closed]
I've edited the .htaccess on root as referenced in Codex:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(/)?$ blog [L]
The /blog/ directory has a .htaccess file:
# ...
0
votes
1answer
91 views
Tricky URL rewrite with custom values in url
We have custom post type as user_images and each of these post has a image attached with image name is 3 digit number followed by extension.
When the url
http://mysite.com/wp_username/3digitnumber
...
1
vote
1answer
616 views
Child pages on hierarchical Custom Post Types 404s
I've been working with Custom Post Types lately and haven't had any major problems. This time I'm trying something new. I want to create a CPT which basically works like Pages, with page hierarchy.
...
2
votes
1answer
98 views
Display posts with author in the url with custom post types
I'm having a really difficult time with this.
I have a multi-user gallery site. Each author has his own page that lists the author's posts (this is a custom post type).
I have made it so that the ...
