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 ...
2
votes
0answers
33 views
Regex in add_rewrite_tag not accepting OR operators?
I am trying to add a custom field to the post permalinks by using a combo of add_rewrite_tag and applying a post_link filter.
What I am aiming for is something like this:
...
2
votes
0answers
54 views
Page Attachment Permalink Structure based on Menu Order?
I've been on a quest for the past couple of days reading up on Rewrite in WordPress but still can't seem to figure out how to accomplish this.
When using pretty links in WordPress, media attached to ...
1
vote
0answers
16 views
Specific routing for CPT
I'm developing site for art gallery. A have Artist CPT (internal name artsin_artist) which is defined in my functions.php like following:
register_post_type('artsin_artist', array(
'labels' => ...
1
vote
0answers
136 views
Help with multisite redirect issues using Cherokee OR solid nginx config?
A little background:
We've decided to abandon Apache because it can't keep up with the demand we're putting on it. We have a cron script that will create a new post about once every 3 or 4 seconds ...
1
vote
0answers
86 views
404 (category, pages, archives) when using custom rewrite rules
I'm using www.domain.com/%POSTNAME%/CAR permalink structure (CAR is the variable i need to extract.
After adding the code to the functions.php the other wordpress url's stopped working (category, ...
1
vote
0answers
95 views
URL Rewrite with Custom Variables
I right now have a custom post type with a url structure like:
example.com/videos/taxonomyname/
I have a custom variable that I am detecting in the template file to switch layout views which works ...
1
vote
0answers
28 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 ...
1
vote
0answers
128 views
Move wp-content htacess
I notice that when I rename the wp-content and plugins folders http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content my multisite network htacess still references wp-content: see this ...
1
vote
0answers
210 views
htaccess rewrite conflict with wordpress rules and ssl
this one has me buggered- I have the below htaccess rule to redirect ssl to non-ssl pages. this works fine, except I'd like to exclude certain wordpress requests from this rule- for example, ...
1
vote
0answers
77 views
Getting 404 error on my wp rewrite error
The code I'm using to rewrite urls with query vars:
function add_query_vars($aVars) {
$aVars[] = "city";
$aVars[] = "address";
$aVars[] = "pg";
return $aVars;
}
// hook add_query_vars ...
1
vote
0answers
97 views
Evaluating a external rewrite rule before internal wordpress rewrite rule
I am been plucking out my hairs since last few days trying to solve this problem:
I want to convert my urls from format
http://example.com/prodsearch/category/tag1-tag2-tag3-tag4
to
...
1
vote
0answers
516 views
How to change “attachment_id” in attachment permarlink?
I changed attachment permalink by add_filter('attachment_link','my_media_url');
from
http://domain.com/?attachment_id=123
to:
http://domain.com/?media=123
The change is successful. But, with the ...
0
votes
0answers
40 views
Rewrite author_name
I need to rewrite author_name to cat. I searched for hours but can't find anything. I restrict the search results by author instead category because of the performance, it's much faster.
For getting ...
0
votes
0answers
37 views
Select good template with rewriting rules
After creating the sub page "China" of the parent page "Destinations", I add to it the "Destinations countries" template.
Without any redirection, I can display the correct template at this url : ...
0
votes
0answers
49 views
Adding rewrite rules to Custom Post-type mixed with Taxonomy
I turn to you because I can not find any solution to my problem.
I created 3 custom post types "Actualités", "Dossiers", "Vidéos" (I'm french :D)
I created 1 taxonomy: "Thématiques" with the ...