[wp-hackers] Custom Re-write Rules
whsatterwhite at gmail.com
Fri Jan 25 20:33:53 UTC 2013
Thanks for taking a look at it Otto. I do in fact have a page named by-date
and I also have WP_DEBUG set to true.
On Fri, Jan 25, 2013 at 3:31 PM, Otto <otto at ottodestruct.com> wrote:
> 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
> > 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
> > 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
> > specified.
> > 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>
> > Best,
> > --
> > Hunter Satterwhite
> > http://linkedin.com/in/hsatterwhite
> > (252) 762-5177
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers