Function rewrite_path
Returns either the rewrite path or the plain, non-mod_rewrite path based on the mod_rewrite option. The given paths can start /with or without a slash, it doesn't matter.
IDEA: this function could be used to specially escape items in the rewrite chain, like the # character (a bug in mod_rewrite).
This is here because it's used in both template-functions.php and in the classes.
string |
$rewrite |
is the path to return if rewrite is enabled. (eg: "/myalbum") |
string |
$plain |
is the path if rewrite is disabled (eg: "/?album=myalbum") |
boolean |
$webpath = NULL |
host path to be prefixed. If "false" is passed you will get a localized "WEBPATH" |
string
|
string |