The rewrite-rules tag has no wiki summary.
0
votes
2answers
263 views
how to properly rewrite url by custom var
ive been trying to rewrite a shop uri, and what i have now is this code:
add_filter('rewrite_rules_array','wp_insertMyRewriteRules');
add_filter('query_vars','wp_insertMyRewriteQueryVars');
...
0
votes
3answers
620 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', ...
3
votes
1answer
1k views
Querystring parameter getting lost in rewrite rule
I have successfully added a custom post type and the permalink structure works great. So, for instance, I've got a custom post type books, and the permalink to a book is /books/the-dictionary.
My ...
3
votes
3answers
440 views
Plugin to Consume a Web Service
I'm attempting to write a knowledge base plugin to consume the Salesforce API and pull in solutions in a RESTful style application path; however, some of the core plugin concepts escape me. For ...
1
vote
2answers
275 views
Custom URL rewrites work, but break my permalinks
I'm doing custom URL rewrites according to this method , which work beautifully. But as a result my regular post permalinks are broken.
So, I'm rewriting "/pagename/1232432" into ...
0
votes
1answer
732 views
How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/
I have a custom post type of players, and archive-players.php lists them all at an address such as www.site.com/players.
I'm then using a url like www.site.com/players?type=pro to list another page ...
2
votes
1answer
405 views
custom permalink/shortlink with base62 encoded post ID
I want my post-links to look like /%post_id62%_%postname%/ where %post_id62% is the post ID in base62 encoding (e.g. http://example.com/y9Rlf_test/) and my shortlinks to consist of /%post_id62% only ...
0
votes
1answer
507 views
Can't get pretty permalinks to work without index.php
I've worked with WordPress for a while now and this is the first time I've had this problem, I can't get my permalinks to work without index.php on the URL even though mod_rewrite is enabled, a few ...
2
votes
1answer
1k views
How do I remove a rewrite rule?
I've added a rewrite rule with the following code, and now I need to remove it.
add_rewrite_rule('^events$', 'index.php?post_type=events', 'top');
My issue is not that the rule is not working. It ...
0
votes
1answer
74 views
Page permalink rewrite
I added the following code which allows categories on my 'Page' post type.
add_action('init', 'edit_page_type');
function edit_page_type()
{
register_taxonomy_for_object_type('category', ...
0
votes
1answer
981 views
Custom rewrite rules for a page with GET variables?
So basically I have a WordPress page called games. Within this page I have a list of custom post type posts. Using a form and some $_GET magic, the user is able to filter the posts based on tags, as ...
1
vote
3answers
2k views
TimThumb & htaccess : clean url
Do you know if there's a way to alter via htaccess the timthumb urls ?
My question is if i can change for example urls like this
...
3
votes
1answer
213 views
Custom comments
I'm trying to create a custom comments page with pagination.
I have non-hierarchical custom type "apartments".
It makes urls like:
/apartments/ - for acrhive
/apartments/%id%/ - for post page
...
0
votes
1answer
474 views
How to test custom rewrite rules /permalinks?
After much research, I think I can wrap my brain around WP's rewrite system. I would like to know, though, how to properly test rewrite rules to see if the right rule/tags is being used and the right ...
2
votes
0answers
157 views
need a help for modify .htaccess rule [closed]
here is my wp .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond ...
0
votes
1answer
394 views
Custom Permalinks for Custom Post Types
I have custom post types registered and they are working fine with their normal URLs. My Custom post types have 'members' as their slug. Now I am trying to have a custom permalink for my custom post ...
0
votes
1answer
429 views
Taxonomy Rewrite Rules Redirecting Instead of Masking
I have a custom post type of items set up. I also have a taxonomy set up with items called categories.
functions.php code:
regsiter_post_type('items',
array('labels' => array
...
0
votes
1answer
683 views
Custom Post Type pagination when CPT 'rewrite' rule and a page have the same slug
I would like to achive the following link structure on my site:
/properties/ -> a properties page with properties CPT, page 1.
/properties/page/2 -> a properties page with properties CPT, page 2.
...
4
votes
1answer
413 views
How Do I add a redirect rule to Wordpress?
Right now, I'm able to dynamically generate js and css, based on my theme options
To do that i set up a query var, that if present redirects to a php file, which then loads itself as a javascript ...
0
votes
1answer
2k views
Custom page with variables in url. Nice url with add_rewrite_rule
Using WP3.1
I Have a custom page with a WP_Query and the query gets dynamic variables from the url. And i want safe variables and clean urls.
Example:
...
2
votes
2answers
524 views
Preventing index.php?category_name=something from redirecting
I'm trying to filter posts in a category by the year of the post's date. I also want to do this without being redirected to the year template so my ideal URL would be ...
1
vote
2answers
175 views
Help With Rewrite_Rules For a Custom Plug-In
I've been reading through this question and answer with great interest as I'm trying to achieve something very similar, but I'm failing and was wondering if someone could help me out.
I am also using ...
3
votes
3answers
2k views
Need help with rewrite_rules_array
I have a page that I access at /category/tasks and the file is located at wp-content/themes/my-theme/tasks.php. I would like to make it so I can add a flag after tasks and pick up the query strong in ...