Home Use .htaccess to cease processing if particular string is captured in URL
Reply: 0

Use .htaccess to cease processing if particular string is captured in URL

user566
1#
user566 Published in July 20, 2018, 1:09 am

I need the following .htaccess file to redirect requests for pages ending in njiswebhook to \webhooklanding.php.

At the moment the requests are still being passed to index.php and are being routed by Slim. How can I tell .htaccess to cease processing if a particular condition is met?

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*njiswebhook /webhooklanding.php [QSA,L]
RewriteRule ^ index.php [QSA,L]
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.297451 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO