[wp-hackers] Custom Re-write Rules
otto at ottodestruct.com
Fri Jan 25 20:31:44 UTC 2013
Nothing wrong with that code.
Do you actually have a Page with a slug of "by-date"?
On Fri, Jan 25, 2013 at 1:27 PM, William Satterwhite
<whsatterwhite at gmail.com> wrote:
> I've been working on getting custom re-write rules working in WordPress and
> I've been through the Codex as well as countless tutorials that show the
> various ways that rewrite rules can be implemented. Now, I'd like to think
> that I'm doing it right, but every time I visit a URL for the custom
> re-write it 404's on me. I know the re-write is registered within
> WordPress, because I can check rewrite_rules in wp_options and see it
> The rule itself is to allow me to point to a page using an ISO formatted
> date as the query_var e.g. http://site.com/by-date/YYYY-mm-dd or
> http://site.com/by-date/2013-02-01. by-date being the static page that I
> want to included in the custom re-rewrite. If anyone could provide some
> insight on what I may be doing wrong or missing then please let me know.
> Here's the pastebin of what I've written. <http://pastebin.com/NCESJF0P>
> Hunter Satterwhite
> (252) 762-5177
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers