Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirection page
#1
Hi,

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');
}
But, but, for example, it's better to use mod_rewrite
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
Reply


Messages In This Thread
Redirection page - by __fabrice - 2010-01-08, 00:16:25
Redirection page - by ccagle8 - 2010-01-08, 01:20:01
Redirection page - by __fabrice - 2010-01-08, 03:19:00
Redirection page - by Nijikokun - 2010-01-08, 03:51:17
Redirection page - by __fabrice - 2010-01-08, 04:55:23
Redirection page - by Nijikokun - 2010-01-08, 06:06:12
Redirection page - by __fabrice - 2010-01-09, 09:06:45



Users browsing this thread: 1 Guest(s)