Header location code is working fine in IE7, IE8, FF but in chrome while redirect the URL its removing page name and adding some random text. any help ?
Dude! Always have a ref in the Whole Thread! Without the PHP Snippet we can't solve mostly until he clearly describes it
Try adding the following to the a line before your Header Location header("Status: 200"); Code (markup): Example: header("Status: 200"); header("Location: /page.php"); Code (markup):
correct syntax for redirecting with header is something like header ("Location: htttp://example.com/page.php"); also see php.net/manual/en/function.header.php
You want a HTTP Status 301 which means the page moved, otherwise Goog will index the page you're being redirected to as the page the redirection is on.