[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
"template_redirect".

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

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');
	exit;
}

add_action('template_redirect', 'all_on_one');
"

_______________________________________________
Brian Layman
www.TheCodeCave.com
 



More information about the wp-hackers mailing list