0

リクエストを index.html にリダイレクトする .htaccess ファイルを取得しました。

しかし、誰かが要求した場合にのみ、それが欲しい

www.mypage.com/login

彼は次の場所にあるファイルにリダイレクトされます

/html/login.html

ここまで私のファイル:

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)$ index.html [NC]

これを実装する方法は?どうも!

4

1 に答える 1

2
RewriteEngine on
RewriteBase /
Options +FollowSymlinks

RewriteRule ^/?login/?$ http://www.mypage.com/html/login.html [NC,R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.html [NC]
于 2012-11-08T20:53:12.637 に答える