Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outside Links in Navigation
#4
Hello,
other way of doing it, is directly in index.php. Putting the following, for example:

Code:
if ($file == "data/pages/yourfile.xml") {
        header ('Location:/myfolder/index.html');
      <!-- or         header ('Location:http://youurl');  -->
      
        exit;
}

I know that this solution is not very pretty, but works well.

This code must be putting after :
Code:
# if page does not exist, throw 404 error
if ($url == '403') {
    header('HTTP/1.0 404 Not Found');

Regards.
Reply


Messages In This Thread
Outside Links in Navigation - by GetSimple - 2010-08-05, 01:11:29
Outside Links in Navigation - by Zegnåt - 2010-08-05, 02:03:50
Outside Links in Navigation - by GetSimple - 2010-08-05, 02:45:11
Outside Links in Navigation - by cumbe - 2010-08-05, 03:08:36
Outside Links in Navigation - by Carlos - 2010-08-05, 05:59:20
Outside Links in Navigation - by Carlos - 2010-08-05, 06:12:40
Outside Links in Navigation - by GetSimple - 2010-08-05, 06:23:38
Outside Links in Navigation - by mvlcek - 2011-04-03, 00:24:56



Users browsing this thread: 1 Guest(s)