.htaccess不同的规则相同的文件重写

.htaccess不同的规则相同的文件重写,.htaccess,.htaccess,我对.htaccess重写有异议。 以下是我的文件内容: Options -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule .* - [S=17] RewriteRule ^withdrawals withdrawals.php RewriteRule ^withdraw withdraw.php Erro

我对.htaccess重写有异议。 以下是我的文件内容:

Options -Multiviews
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .* - [S=17]

RewriteRule ^withdrawals  withdrawals.php
RewriteRule ^withdraw  withdraw.php

ErrorDocument 404 /404.html
问题是,即使指向不同的文件,Drawals和Draw规则也会重定向到Draw.php文件。 此外,当draw.php丢失时,两个路径都显示为404。
提前感谢您提供的任何帮助或指导。

很难看出这将如何工作。重写在.htaccess“loops”中配置,因此在
^drawings
匹配并且请求被重写为
drawings.php
之后,应该一次又一次地匹配……您还需要在末尾锚定这些模式,
$