[wp-hackers] Custom Re-write Rules

Simon Dunton - WP Sites simon at wpsites.co.uk
Sat Jan 26 08:32:23 UTC 2013


Human made have a handy little class that might have been very useful to you  http://hmn.md/wordpress-rewrite-rules-hm-core-style/

Maybe not now you've fixed the issue but it might make someone else's life a little easier.

Simon

On 25 Jan 2013, at 19:27, William Satterwhite 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
> 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



More information about the wp-hackers mailing list