Refers to the process whereby an URL is manipulated to create what in WordPress is called a "pretty permalink"
0
votes
1answer
132 views
How to make wordpress use www.example.com/blog/wp-includes/ instead of www.example.com/wp-includes/?
I have WordPress at address http://www.example.com/blog/, now I want it to be accessible as http://www.example.com/ without moving wordpress to root directory.
I have made appropriate .htaccess ...
2
votes
2answers
2k views
Using $_GET variables in the URL?
I need to generate a simple error message on a page by passing a variable through the URL.
The URL is structured as follows:
http://site.com/parent-category/category/?error=pause
I'm sure it's the ...
1
vote
3answers
2k views
How to make a category page the blog home page?
I want to use a category page as the home page of my blog. Is that possible and how can I do it? It tried it with a .htacces rewrite rule but that didn't worked.
0
votes
1answer
53 views
Wordpress post-type create url rewriting
i create a new post-type in wordpress.
The new post-type is called work.
I want to customize the link when the user click "details button".
The link is work/post_id/postname
I have a trouble to ...
2
votes
2answers
52 views
Rewrite category wordpress
Is it possible to rewrite only one category ?
I have a category "Photos" and just for this category.
I just want to rewrite it from /category/photos to /photos
1
vote
0answers
29 views
How do I list terms of a custom taxonomy at i.e. domain.com/brands/
I have a custom post type 'products' with custom taxonomy 'brands'. My URL structure should be:
domain.com/brands - should list the brands
domain.com/brands/brand/ - should list products of the ...
0
votes
1answer
313 views
Multiple parameters in a custom post type url rewrite
I have a custom post type called venues currently they display through the url format:
http://mywebsite.com/venue/{venue-name}
I would like to have the format:
...
1
vote
1answer
101 views
Force a specific template based on the URL
When a user browses to a URI beginning with "/forums", WordPress should call a specified template. For example, all of these URLs:
mysite.com/forums
mysite.com/forums/questions
...
1
vote
0answers
27 views
Permalinks only for posts
I would like to use wordpress permalinks but only for posts. Is there any way to do that?
I don't care about seo, my website is about niche subject so it already has first position in google. Also ...
0
votes
0answers
117 views
Different network site slug for each language
I have one wp installation with network activated. Let's say it's on www.example.com
One of the sites in network is called Italy. I need to have italian and english language that work like this:
...
2
votes
1answer
713 views
Permalink rewrite with custom post type and custom taxonomy
I think thats a quick one:
I've got:
Custom post type: Food
Custom taxonomy (Registered to Food): Fruits
Terms in Fruits: Apple, Orange, Cherry
If I type in example.com/food?fruits=Apple,Cherry, ...
0
votes
1answer
1k views
Help with Wordpress custom url rewriting?
I have 3 problems.
First,I would like something like this to do :
www.example.com/myblog => myblog.example.com
myblog is template page.
and then when open one post from that page(post are custom ...
0
votes
1answer
124 views
wp_sanitize_redirect strips out @ signs (even from parameters) — why?
In my wordpress site I have a hack that looks at the uri and does a redirect to a subdomain. The problem is wp_redirect calls wp_sanitize_redirect which will strip out @ signs, so when a user tries to ...
-1
votes
1answer
28 views
Permalinks, how to show them in post
So I created page
www.example.com/NEWS/
and I want all the posts from that category to show up there. It does that, but when I add a post (NEWS), the link is :
www.example.com/newpost/
I want ...
1
vote
3answers
871 views
Is it possible to change the URL of custom post types to hide the post type slug?
I would like to turn /{custom-post-type}/{post-name} to /{post-name}, is this possible?
If this is not possible, can I change the labels/terminology in Pages or Posts so that they could be called ...
2
votes
1answer
108 views
Rewrite of URL with '[' ']' or '(' ')' as literals
Trying to match and URL like this
linktosite/alphaNum/123/321/alphanum[alphanum].jpg
in .htaccess I can match and extract all the groups properly with
...
1
vote
1answer
171 views
How to remove parent section from attachment URL?
I have buddypress installed. All URL goes under BP's URL structure. If an attachment belongs to a document in a group, the URL is:
http://domain.com/groups/group-name/docs/doc-name/attachment-name
...
0
votes
1answer
129 views
custom naming of search permalink /search/
I found this snippet online …
function search_url_rewrite_rule() {
if ( is_search() && !empty($_GET['s'])) {
wp_redirect(home_url("/search/") . urlencode(get_query_var('s')));
...
0
votes
1answer
158 views
Redirect old query string urls to new SEO urls
I had urls like example.com/?area=new-york. area is a custom taxonomy. I had to change the urls to example.com/new-york. I want to do a 301 to new urls if previous urls are accessed. and I want Google ...
0
votes
2answers
168 views
Custom Post Type Base URL
Is it possible to not use the loop for the base URL of a custom post type.
So for instance if my custom post type is 'directory'.
I don't want http://www.mysite.com/directory/ to land at the loop ...
0
votes
2answers
952 views
Two “.htaccess” Files Located in Different Directories?
I found two ".htaccess" files, one is located in '/httpdocs/.htaccess', another one is located in '/httpdocs/wordpress/.htaccess', the content is different, is it normal?
The Wordpress was installed ...
-1
votes
2answers
105 views
Please Check this '.htaccess' File
I just found my '.htaccess' file has the same lines of code repeated twice as below, maybe some plugins changed it, is it incorrect? Should I remove the repeated one? Thanks!!
<IfModule ...
0
votes
0answers
93 views
htaccess get content from other folder [closed]
I'm using nextgen gallery plugin in my blog. The default folder for storing images is wp-content/gallery/gallery_name/ . I'm looking for a way to move all images in all galleries to one folder.
...
2
votes
1answer
343 views
Using custom/dynamic “slug” for a page
I have a custom page which uses a template called "Stores" http://example.com/stores/. This page will have a list of states and/or companies as categories. For this system I have a custom post type ...
0
votes
1answer
99 views
Remove url parameter using wordpress
how can I remove a parameter from a URL in wordpress? for example if I have the following URL: http://domain.com/?cat=4&paged=2&order=DESC
How can I remove paged from it?
0
votes
1answer
39 views
URL rewrite( I think? )
I have a URL: www.example.com/my_cool_pancakes. When a User goes to this URL, I would like the URL to instead be www.example.com/pancakes. How do I do this? Is this URL rewriting? I have studied URL ...
0
votes
1answer
52 views
Custom Taxonomy in Permalink from post type
I am using custom post types and custom taxonomies for that post type.
This snippet currently sets the permalinks for the post type:
'rewrite' => array('slug' => 'myrewritebase'),
I am ...
0
votes
2answers
304 views
How to handle paging/pagination with a custom permalink?
I hope I can explain this properly:
I'm working on a project involving multiple post types and custom permalinks. I have a post type for TV/movie series/franchise and a separate post type for ...
1
vote
3answers
248 views
Many to Many Taxonomies or rewrite rules?
Im developing a theme for article directory and i would like to link some way taxonomies to taxonomies.
I had a custom post type called "company" with 2 taxnomies
Taxonomy #1 is category with ...
1
vote
0answers
55 views
Custom taxonomy and post type with same slug
I'm using the plugin "types" to register the custom taxonomy and post types,
and got 404 when using the same slug for them to display them hierarchy, like this:
site.com/tax //taxonomy archive
...
0
votes
1answer
73 views
Can I exclude a single URL from a rewrite plugin?
I am working on an imported .html site that has been using the .html on pages plugin to rewrite the URLs for inbound link purposes. Now I am trying to integrate it with a subdomain blog ...
4
votes
2answers
4k views
How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
I'm using Wordpress 3.1.3 as a full CMS, installed in the root directory of a domain. I have it setup using the built in options to have a static page as the home page, and then my blog at ...
0
votes
1answer
703 views
Change URL for Blog?
Using WP 3.1.1 as a CMS, using the Boldy theme.
Home page is at http://www.dekho.com.au
Advantage of using this theme, is that it comes setup with a homepage that has a gallery slider and some ...
1
vote
0answers
158 views
htaccess rewrite, adding segment to url
Im not that good with htaccess files & regexes, and i'm trying to add a segment to a certain url. I'm building a website for a festival and we have a comon structure for the artists being:
line-up ...
0
votes
3answers
1k views
Pretty URLs or permalinks for attachments
Theres a way to convert links like:
http://www.localhost.lh/?attachment_id=41
into:
http://www.localhost.lh/attachment/id
or:
http://www.localhost.lh/author/attachment/id
1
vote
0answers
44 views
URL rewrite of independent plugin?
I'm currently developing a more complex plugin for WP which can't be hooked up to the WP-API itself (Custom Post Types doesn't fit my requirements). Of course I use the API alot, because the data is ...
0
votes
1answer
46 views
What approach should I take for this URL structure?
For a website I am developing I have to create two pages with listings of courses. The first page is a "Trainings" page while the other page is "Coaching". I would like to use a single custom post ...
0
votes
1answer
378 views
Rewrite custom taxonomy slug - but only parent items
I've set up a custom hierarchical taxonomy called 'region'.
So now I have e.g. url.com/region/leeds/ etc.
However, I'm now expanding to other countries, so I'm making the region sub-categories of ...
2
votes
1answer
61 views
Is it possible to rewrite URLs in this situation?
I am using a fantastic plugin called Query Multiple Taxonomies which provides a widget to "drill down" by category / tag and other custom taxonomies you may have.
The site is livetonom.com.
The ...
0
votes
1answer
417 views
how to create several url aliases for a page
on the root page of a WordPress site we have a custom page template, that also handles some forms and dynamically changes part of the content.
Something like this:
<form action="" ...
0
votes
2answers
2k views
Changing the category permalink structure
Hopefully another simple one, I have some nested categories, like this:
- category-a
- category-b
-category-c
The permalink for category-c is as follows:
...
3
votes
4answers
3k views
URL Rewrite + Page + Custom Post Type = Unusual Redirect
Yet another URL rewrite issue :)
The Problem
I have a URL rewrite rule that should work, but against all logic it redirects without passing the query var.
The Juicy Details
The site has a page ...
1
vote
1answer
93 views
add_rewrite_rule behaving strangely
I'm customizing another plugin by changing the rewrite rule, from:
add_rewrite_rule('^api/auth/([0-9]+)?/?','index.php?__api=1&uid=$matches[1]','top');
to:
...
1
vote
1answer
737 views
wp_list_categories() - current-cat class also inside posts?
I wrote my own function to list all taxonomy terms of a certain taxonomy …
function wr_list_taxonomy($taxonomy, $orderby, $hierarchical) {
$show_count = 0;
$pad_counts = 0;
$title ...
1
vote
1answer
243 views
Rewrite rule for a query string
I have a taxonomy search form and the link output is
http://localhost/wp/?cityid=16
But i want it to be rewrited as
http://localhost/wp/cityid/16
.htaccess
# BEGIN WordPress
<IfModule ...
0
votes
2answers
190 views
Using WP Rewrite to rewrite custom urls in this scenario
I have build a plugin where I can output special php pages on a page using shortcode.
The plugin directory consists of the following php pages.
product_info.php
index.php
account.php
login.php
...
0
votes
1answer
316 views
Multilingual theme: Changing locale based on URL
I'm developing a multilangual theme. I use the __() function for translation, which works just fine.
The main language is English, but the second language is German. For that second language, I'd like ...
4
votes
2answers
1k views
Change the “page” slug in pagination
Simple question. When pagination is activated, the URL changes to "site.com/page/2". For my site, this should be "site.com/paggetto/2".
How can I change that rewrite rule? I also want to change ...
3
votes
1answer
143 views
Remove unwanted part of permalink custom structure from CPT url?
My site currently has regular posts (in a section called "Trend Watch"), as well as a Custom Taxonomy (called "Region").
My permalink settings have this Custom Structure:
...
12
votes
2answers
5k views
Mixing custom post type and taxonomy rewrite structures?
Basically I want to achieve a glossary using custom post types and have some issues setting up rewrites the way I want them to be. I want it like that:
The main glossary URL:
...