我需要以下.htaccess文件重定向在结束页面的请求njiswebhook
来\webhooklanding.php
。
目前,请求仍在传递给Slimindex.php
并由Slim路由。如果满足特定条件,我如何告诉.htaccess停止处理?
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*njiswebhook /webhooklanding.php [QSA,L]
RewriteRule ^ index.php [QSA,L]
该[END]
标志在到达该子句时停止处理。
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*njiswebhook /webhooklanding.php [QSA,L,END]
RewriteRule ^ index.php [QSA,L]
以上解决方案已经实施并测试。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句