htaccess ファイルでは、現在 404 エラーが発生したときにユーザーをリダイレクトしています
ErrorDocument 404 /index.php?p=error
ただし、このリダイレクトに加えて、アドレスバーの URL を www.mywebsite.com にしたい
どうすればこれを達成できますか?
編集:私のhtaccessの全内容:
Options -Indexes
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
ErrorDocument 404 /index.php?p=error