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)

1
vote
1answer
451 views

How to prepend route with /blog for blog listing page only

My permalink settings is simply /%postname%/ (yes I read from the codex that this is bad performance practice). The result is: a page url might look like site.com/pagename a blog post looks like ...
1
vote
1answer
657 views

Pros and cons of using [taxonomy name] in place of [category name]?

We are currently in development on a new site. Categories (& tags) are pretty much meaningless for us because we've implemented custom posts & taxonomies. By default, because I have enabled ...
1
vote
4answers
700 views

URL Design for Sub-Posts?

I currently have this: mysite.com/product-name mysite.com/another-product etc where product-name and another-product are posts. I then have a custom post type called Changelogs, which I have for ...
0
votes
1answer
346 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 ...
0
votes
2answers
599 views

Search url wp-rewrite after redirect?

I started using this functions for my "search results"-page. #SearchRewrite add_action('generate_rewrite_rules', 'my_rewrite_rules'); function my_rewrite_rules( $wp_rewrite ) { //RewriteRule ...
0
votes
1answer
1k views

add_rewrite_rule again

In general, the code from this question fit to me for 90%. One little change I need - I want all URL like *example.com/snpv/any_text/* direct not to index.php as in original code, but to my.php script ...
0
votes
1answer
693 views

How to properly prefix blog post URL's

I want to prefix my blog posts with /news/ and changing my Permalinks to /news/%postname% seems to do the trick. However, I also have a few custom post types and for some reason those URL's are now ...
0
votes
1answer
853 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 ...
0
votes
3answers
2k views

How do I make page URLs look like “www.site.com/page” instead of “www.site.com/blog/page” but have post URLs stay “www.site.com/blog/post”?

I would like to make it so the URLs of my pages (created in the Wordpress dashboard) show up right after the domain name instead of after the blog directory. I have installed Wordpress in a ...
-1
votes
2answers
1k views

How to improve WordPress security by hiding non public facing files?

e.g. curl -I http://ma.tt/blog/wp-config.php 200 OK The wp-config.php is not public facing file, since it currently just return blank page, so why not return 404 instead. (so will not be cached by ...
5
votes
1answer
580 views

External/non-WP rewrite rules

I have a fairly complex wordpress with multiple sub-directories: example.com/sub1/ example.com/sub2/ I'm trying to implement some history/bookmark support, and to do that I need the URLS containing ...
4
votes
4answers
291 views

Update URL Snippet to Canonical Permalink URL

My permalinks is in the format domain.com/post-id/post-slug I notice this is a great choice for permalinks as I can share articles with a short URL like domain.com/123 But when I go to this short ...
4
votes
1answer
167 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 ...
3
votes
2answers
447 views

Make post slug have priority over category slug

I have a wordpress site where the category base is stripped from the url. Now, when a category has a certain slug that's similar to a post slug, the category is shown. I would like to show the post ...
3
votes
1answer
2k views

Custom Permalinks for Blog Posts Only

I know this is a fairly common topic around here, but I can't seem to figure out a solution to my particular case from reading similar threads. Basically, my permalink structure needs to be ...
2
votes
1answer
33 views

How can I modify the permalink via a filter?

I would like to make a change to the URL's in my href attribute across my while site when the_permalink is called. For example: <h2><a href="<?php the_permalink()?>" Can I use my ...
2
votes
1answer
2k views

How to retrieve $_GET variables from rewritten URLs?

I need to receive some special $_GET parameters for a custom page I'm making, i know how to receive this through a simple $_GET like mysite.net/products/?id=1 , but I wanted to use the URL style of my ...
2
votes
2answers
4k 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 ...
2
votes
4answers
2k views

Redirect all posts urls from without .html to .html

How can i redirect all posts permalinks to .html ,in Wordpress ? now all my posts url are ending in .html ,but before it was without .html to be more clear ,for example a post url like this ...
2
votes
3answers
7k views

How to change “wp-admin” to something else without search-replacing the core?

for example: foobar.com/wp/edit instead of foobar.com/wp/wp-admin How would I do that? I've tried using this in htaccess but it won't work: ##### ABOVE THIS POINT IS ALREADY INSERTED BY WORD PRESS ...
1
vote
0answers
92 views

WP Rewrite the last two parts of the URL

I have found quite a lot of post on the subject of WP rewrite but I can't find the right words to describe this problem. I'm trying to accomplish the following: ...
1
vote
2answers
213 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 ...
1
vote
2answers
193 views

open all .docs in word online

Hey I'm trying to make all .doc/docx .xls/xlsx files open in office online. This would mean that every link to a .doc http://mywebsite.com/wp-content/uploads.link.doc would have to instead point ...
1
vote
0answers
137 views

Lost of query parameter when using permalink

I have many issues with the use of rewriting, but i'll just point out one in this post to be specific. In my theme i use custom post type, with custom taxonomy function custom_post_realisation() { ...
1
vote
0answers
49 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 ...
1
vote
1answer
377 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 ...
1
vote
1answer
895 views

Use the plus sign “+” instead of dash “-” in URLs

Is it possible to use the plus sign instead of the dash as the word delimiter in the url? And if so, how exactly would that be done? e.g.: www.example.com/some-title/ becomes ...
0
votes
0answers
20 views

Rewrite rule for parameter in the URL doesn't work

I am working on an existing project that uses this plugin https://wordpress.org/plugins/edit-author-slug/ in order to edit the "base" of an user's path. Actually the urls are something like this: ...
0
votes
1answer
36 views

How to change/rewrite the lost password url?

I used iThemes Security (formerly Better WP Security) hide back-end functionality to change the login url to /signin however clicking the lost password link /wp-login.php?action=lostpassword now ...
0
votes
1answer
69 views

Add_query_arg + two times the same argument?

I'am trying to filter my archive page by clicking links. When clicked they execute the add_query_arg command. Everything works fine so far. But now i want to add combinations within the same ...
0
votes
1answer
56 views

How can I write a rewrite rule to appear to move a multisite?

As we concluded in my question about trying to change the url of a multisite the simplest solution might be to add a rewrite rule, since it is infact only the end result that I'm concerned about here. ...
0
votes
2answers
86 views

add_rewrite_rule not registering on Multisite

I have a multisite install of WordPress. I have installed the plugin Monkeyman Rewrite Analyzer so I can see all the rules I have registered. The code below is how I am registering the rule: ...
0
votes
2answers
65 views

page is not redirecting

I want to redirect to a page to my home page if there would be found only one post.I have tried below code but it is not working, i have also tried header("location:url"), but it is also not working. ...
0
votes
1answer
52 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 ...
0
votes
4answers
250 views

Exclude subcategories from the url

We have a site with categories and subcategories. If anybody navigates to a content belongs to a subcategory the url will have the following form: domain/main-category/sub-category/mycontent/ But we ...
0
votes
1answer
114 views

Prevent Wordpress from automatically correcting URLs

I notice that if I type in http://www.example.com/pag I can land on an existing page that has a name like http://www.example.com/page_five. I don't know exactly what causes this, but I want to know if ...
0
votes
1answer
803 views

Custom Post Type nest under a normal WordPress Page

EDIT Again, nope it's not impossible, just nasty. Solution below. Trying very hard to get this working. Have tried numerous suggestions here on stackexchange/overflow My goals are to simply select ...
0
votes
1answer
316 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
2answers
3k 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 ...
0
votes
1answer
89 views

Wordpress redirection to get url friendly

I want to get url friendly for pass data to page from other page. I explain : I have on i classic wordpress page, url like it : ( example.com/agent/name_agent ) it's url build dynamically. ( ...
0
votes
1answer
323 views

Author Specific URL's in WordPress

In continuation of this thread Mapping multiple URLs to same page in WordPress is there any other way except redirect similar pattern URLs to same page. Our goal is to provide our guest and other ...
0
votes
1answer
584 views

Rewrite loading custom template file but is_home() returns true, and there's no 404

I want to create some custom pages for my theme that don't appear in the Page listing in wp-admin. I have the following class which intercepts the url. class jtvRewrite { var $path = ''; function ...
0
votes
1answer
1k views

Rewrite on custom post type permalink not working?

My theme has a custom post type called 'portfolio'. I want the url to display 'projects' instead. I've change the rewrite on the register_post_type function to 'projects' but it doesn't change the ...
0
votes
3answers
854 views

Need to make a php file inside theme accessible via url

I checked this post here Making a plugin file accessible via url rewrite? which seems to have the same problem as me but its for a plugin. But so far i am getting 404. add_action( 'init', ...
0
votes
2answers
135 views

Need help with a custom rewrite rule - http://domain/custom post slug/replies

I had asked this question in a different way too, but no one replied there! I guess I should rephrase it here. My custom post is 'company'. I'm trying to add a custom rewrite rule. When the 'url ...
0
votes
2answers
398 views

Is there a PHP function that can match anything after the given URL, so my IF statement will work in each instance?

I have an IF statement shown below that runs one of 2 custom queries, based on the url. The problem I'm facing is if the url contains pagination such as /page/2/, my query breaks because the url isn't ...
0
votes
2answers
157 views

Permalinks for quote authors

What I have: A site of quotes with format: "Quote text." -Quote Author See quotup.com for my test website (my apologies in advance for the testing-profanity). What I'm after: Clicking "-Quote ...
0
votes
1answer
631 views

Redirecting all old links from previous EE site to new WP site in one go?

I'm about to migrate from an old Expression Engine website to a new WordPress site on the same domain. Is there anything I should be aware of with respects to redirecting old links? The old site is ...
0
votes
1answer
656 views

Separate page for comments using permalinks and add_rewrite_rule

I have been at this for days now, going through plenty of answers here, guides on using .htaccess, guides on using add_rewrite_rule() within Wordpress and examples throughout the web. I am not sure if ...
0
votes
2answers
980 views

Why is my mod_rewrite not working?

Ok I have a WP site using the permalink structure of /%category%/%postname%/ I have built it in the way of page templates, using category queries inside, i.e. page-help.php <?php $my_query = new ...