Redirect only a specific index.php page to new location
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
To
: users@xxxxxxxxxxxxxxxx
Subject
: Redirect only a specific index.php page to new location
From
: Kory Wheatley <kory.wheatley@xxxxxxxxx>
Date
: Wed, 17 Jan 2018 21:53:44 -0700
Reply-to
: users@xxxxxxxxxxxxxxxx
When someone types to go to
http://sftpinterface/deptblogs/
or a link I need it to redirect to
http://intranet/template_departments.cfm
. Which I was able to accomplish in the index.php header content with
<?php
/* Redirect browser */
header("Location:
http://intranet/template_departments.cfm
");
/* Make sure that code below does not get executed when we redirect. */
exit;
?>
But the problem is all pages underneath
http://sftpinterface/deptblogs
redirect to
http://intranet/template_departments.cfm
. Like I don't want
http://sftpinterface/deptblogs/nursing
to be redirected to
http://intranet/template_departments.cfm
. I want it to stay on that page along with the others. Only
http://sftpinterface/deptblogs
or
http://sftpinterface/deptblogs/index.php
needs to be redirect to
http://intranet/template_departments.cfm
and not the sub directory sites underneath /deptblogs. What's the possible way of doing this.
Follow-Ups
:
Re: Redirect only a specific index.php page to new location
From:
Marat Khalili
Re: Redirect only a specific index.php page to new location
From:
Luca Toscano
Prev by Date:
Correctly configuring OCSP Stapling cache
Next by Date:
Worker MPM with debug mode
Previous by thread:
Correctly configuring OCSP Stapling cache
Next by thread:
Re: Redirect only a specific index.php page to new location
Index(es):
Date
Thread
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]