When logged in it redirects, how to? 06-15-2014, 04:03 PM
#1
Like HC when you log in, It re-directs you to the index page, How would you do that?
| When logged in it redirects, how to? filter_list | |
header("Location: hackcommunity.com");header("Location: hackcommunity.com");(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function
Code:header("Location: hackcommunity.com");
(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function
Code:header("Location: hackcommunity.com");
(06-15-2014, 04:07 PM)BlueCat Wrote:(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function
Code:header("Location: hackcommunity.com");
Do I place that anywhere in the php code? or?
if ($url == "Google") {
header("Location: http://www.google.com");
} else {
//Redirect somewhere else
}(06-15-2014, 04:07 PM)BlueCat Wrote:(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function
Code:header("Location: hackcommunity.com");
Do I place that anywhere in the php code? or?
if ($url == "Google") {
header("Location: http://www.google.com");
} else {
//Redirect somewhere else
}(06-15-2014, 04:14 PM)Ex094 Wrote:(06-15-2014, 04:07 PM)BlueCat Wrote:(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function
Code:header("Location: hackcommunity.com");
Do I place that anywhere in the php code? or?
Yes! for example:
Code:if ($url == "Google") { header("Location: http://www.google.com"); } else { //Redirect somewhere else }
You can use it where ever you want
(06-15-2014, 04:14 PM)Ex094 Wrote:(06-15-2014, 04:07 PM)BlueCat Wrote:(06-15-2014, 04:06 PM)Ex094 Wrote: Using the header function
Code:header("Location: hackcommunity.com");
Do I place that anywhere in the php code? or?
Yes! for example:
Code:if ($url == "Google") { header("Location: http://www.google.com"); } else { //Redirect somewhere else }
You can use it where ever you want