Kod
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(robots\.txt)
RewriteCond %(REQUEST_FILENAME) !-f
RewriteCond %(REQUEST_FILENAME) !-d
RewriteRule ^([a-zA-Z0-9/_]+)$ index.php?$1
RewriteBase /
RewriteCond $1 !^(robots\.txt)
RewriteCond %(REQUEST_FILENAME) !-f
RewriteCond %(REQUEST_FILENAME) !-d
RewriteRule ^([a-zA-Z0-9/_]+)$ index.php?$1
Jak osiągnąć taki efekt, aby po wpisaniu w adresie http://localhost/index.php przekierowało na http://localhost/ i nadal uzyskiwać dostęp do strony tylko przez odwołanie się w taki sposób http://localhost/kontroler/akcja/parametr

