Code:
RewriteEngine On
RewriteRule ^/tool/.*$ /start.php
da erhalte ich folgende fehlermeldung:
Forbidden
You don't have permission to access /tool/ on this server.
PHP-Code:
<?php
if(($_SERVER['DOCUMENT_ROOT'] . $_SERVER['PHP_SELF']) != __FILE__) {
header('Location: http://' . $_SERVER['HTTP_HOST'] . '/index.php');
exit;
}
?>
habe das an den anfang der index.php gesetzt. wenn ich jetzt die start.php aufrufe, erhalte ich die "header already sent"-fehlermeldung zusätzlich.
Code:
Redirect /tool/index.php /start.php
da bekomme ich diese meldung:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ... and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.