これが私が現在私の.htaccess
ファイルに書いているものです:
RewriteEngine on
RewriteRule ^contact contact.php
RewriteRule ^browse browse.php
RewriteRule ^contact/ contact.php
RewriteRule ^privacy privacy-policy.php
RewriteRule ^signup register.php
RewriteRule ^register register.php
そのため、ファイルで定義されていないhttp://mydomain.com/welcomeをユーザーがリクエストする.htaccess
と、「404 Not Found」ページが表示されます。
.htaccess
代わりに、明示的に定義されていないページを別のスクリプトにリダイレクトし、元の URL を渡したいと考えています。ここでは sを使用したくありませんErrorDocument
。これどうやってするの?