Page 1 of 1
headerRedirect or header('Location
Posted: Mon 5. Sep 2011, 12:58
by update
What's better of these two / where is the real difference (for search engines et al) between
header( "HTTP/1.1 301 Moved Permanently" );
header('Location: http://....
and
header( "HTTP/1.1 301 Moved Permanently" );
headerRedirect('index.php?.....
Anybody?
Re: headerRedirect or header('Location
Posted: Mon 5. Sep 2011, 14:24
by flip-flop
Code: Select all
headerRedirect('index.php?whow', 301);
is the same like:
Code: Select all
header( "HTTP/1.1 301 Moved Permanently" );
header('Location: http://....
Have a look into the file include/inc_lib/default.inc.php
function headerRedirect
Knut
Re: headerRedirect or header('Location
Posted: Mon 5. Sep 2011, 15:03
by update
I had a look and it seems to be this way:
headerRedirect is used within a domain and header('Loc... is switching between domains
Somewhat like this?
Re: headerRedirect or header('Location
Posted: Thu 8. Sep 2011, 08:55
by Oliver Georgi
There is no difference.
But headerRedirect() can be used also without a new location. It is just a simple wrapper function.