2010-08-05, 03:08:36
Hello,
other way of doing it, is directly in index.php. Putting the following, for example:
I know that this solution is not very pretty, but works well.
This code must be putting after :
Regards.
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.