.htaccess
Code:
RewriteEngine On RewriteRule ^ index.php [QSA,L]
PHP-Code:
switch(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)){
case '/test':
echo 'test';
break;
default:
echo 'error';
break;
}
RewriteEngine On RewriteRule ^ index.php [QSA,L]
switch(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)){
case '/test':
echo 'test';
break;
default:
echo 'error';
break;
}
AcceptPathInfo On DirectoryIndex disabled DirectoryIndex index.php FallbackResource /path/to/index.php
echo $_SERVER['PATH_INFO'];
Options -MultiViews AcceptPathInfo On RewriteEngine On RewriteBase /path/to/the/htaccess/directory RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L]
scheme-specific-part → → → | | http://hans:geheim@example.org:80/demo/example.cgi?land=de&stadt=aa#geschichte | | | | | | | | | | | host | url-path query fragment | | password port | user scheme (hier gleich Netzwerkprotokoll)
Einen Kommentar schreiben: