[wp-hackers] URL Re-writes for WP 'Pages' or Multiple Permalinkstructures

Brian Layman Brian at TheCodeCave.com
Wed Aug 23 14:15:08 GMT 2006

>I have a site that I need to get EVERYTHING to end in .html 
>anyone have any other thoughts/ideas?

You could catch anything that is missed with a plugin that is hooked into

To quote from http://codex.wordpress.org/Plugin_API

No parameter. 

Executes before the determination of the template file to be used to display
the requested page. Useful for providing additional templates based on
request criteria. Example (pedagogical, not useful): Redirect all requests
to the all.php template file in the current themes' directory. 

function all_on_one () {
	include(TEMPLATEPATH . '/all.php');

add_action('template_redirect', 'all_on_one');

Brian Layman

More information about the wp-hackers mailing list