.htaccess Question
-
Is It possible to redirect to other htaccess beside index.php?
I have tried, but it just don’t work
function print_config() {
global $wp_rewrite;
$print_post_rules = array(‘archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([^/]+)/print/?$’ => ‘wp-print.php?year=’.$wp_rewrite->preg_index(1).’&monthnum=’.$wp_rewrite->preg_index(2).’&day=’.$wp_rewrite->preg_index(3).’&name=’.$wp_rewrite->preg_index(4));
$print_page_rules = array(‘(.+)/printpage/?$’ => ‘wp-print.php?pagename=’.$wp_rewrite->preg_index(1));$wp_rewrite->rules = $print_page_rules + $wp_rewrite->rules + $print_post_rules;
}
add_filter(‘generate_rewrite_rules’, ‘print_config’);
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘.htaccess Question’ is closed to new replies.