Author: Lars Michelsen <[email protected]>
Date: Tue Nov 8 18:31:47 2011 +0100
Committer: Lars Michelsen <[email protected]>
Commit-Date: Tue Nov 8 18:31:47 2011 +0100
Using 301 http headers for redirections as mod_rewrite did before
---
share/config.php | 2 +-
share/index.php | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/share/config.php b/share/config.php
index a99112b..001b81f 100644
--- a/share/config.php
+++ b/share/config.php
@@ -21,6 +21,6 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*****************************************************************************/
-
+header("HTTP/1.1 301 Moved Permanently");
header("Location: " . rtrim(dirname($_SERVER['PHP_SELF']), '/\\') .
"/frontend/nagvis-js/index.php".(($_SERVER["QUERY_STRING"] != '') ?
'?':'').$_SERVER["QUERY_STRING"]);
?>
diff --git a/share/index.php b/share/index.php
index 05fae3a..3df34da 100644
--- a/share/index.php
+++ b/share/index.php
@@ -21,6 +21,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*****************************************************************************/
-
+
+header("HTTP/1.1 301 Moved Permanently");
header("Location: ".rtrim(dirname($_SERVER['PHP_SELF']), '/\\') .
"/frontend/nagvis-js/index.php".(($_SERVER["QUERY_STRING"] != '') ?
'?':'').$_SERVER["QUERY_STRING"]);
?>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins