これは、すべての呼び出しを index.php または error.php にリダイレクトする単純な htaccess です。
正常に動作しますが、アドレスバーから元のアドレスを非表示にします。
#Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php [L]
ErrorDocument 404 /error.php
www.mysite.com/news/last にアクセスすると、www.mysite.com/index.php?p=news§ion=last を表示できますが、アドレス バーで変更されないことを望みます。
前もって感謝します ;)