Timeline for Wordpress Rewrite Rule
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 26, 2013 at 9:18 | comment | added | david.binda | I've modified the answer in your proposed way. | |
Feb 26, 2013 at 9:18 | history | edited | david.binda | CC BY-SA 3.0 |
deleted 1 characters in body
|
Feb 26, 2013 at 9:18 | comment | added | david.binda | I'm sorry for that little issue. Wouldn't you mind to mark the answer as correct, please? | |
Feb 26, 2013 at 9:13 | vote | accept | David B | ||
Feb 26, 2013 at 9:13 | comment | added | David B |
Thanks! It's worth noting that i had to remove the leading '/' for it to work: $wp_rewrite->rules = array( 'mypage/(.+?)/?$' => $wp_rewrite->index . '?page_id='.$mypage_id.'&var=' . $wp_rewrite->preg_index( 1 ), ) + $wp_rewrite->rules;
|
|
Feb 26, 2013 at 9:04 | comment | added | david.binda | see modified answer above | |
Feb 26, 2013 at 9:04 | history | edited | david.binda | CC BY-SA 3.0 |
deleted 178 characters in body
|
Feb 26, 2013 at 8:56 | comment | added | david.binda | this completely changes the question | |
Feb 26, 2013 at 8:51 | comment | added | David B | "helloword" is an unknown variable, please see note added to my question. | |
Feb 26, 2013 at 8:43 | history | answered | david.binda | CC BY-SA 3.0 |