2010-01-08, 00:16:25
Hi,
I would to redirected the index.php page (template.php) to a page named 'ie6.php' if the browser is IE6 :But, but, for example, it's better to use mod_rewrite
How can I do this ?, use the get_page_url() ? it's seems not. Where the url mod_rewrite pages are write (data/my-page.xml) ?
Regards,
Fabrice
I would to redirected the index.php page (template.php) to a page named 'ie6.php' if the browser is IE6 :
Code:
$browser = @get_browser(null, true);
if ($browser) {
$browser = trim($browser['browser_name_pattern']);
} else {
$browser = trim($_SERVER['HTTP_USER_AGENT']);
}
if (strpos($browser,'MSIE 6.0') !== FALSE) {
header('location:ie6.php');
}
Code:
header('location:http://my-web-server/ie6');
How can I do this ?, use the get_page_url() ? it's seems not. Where the url mod_rewrite pages are write (data/my-page.xml) ?
Regards,
Fabrice