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

user4641
1#
user4641 Published in September 19, 2018, 9:08 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]
share|improve this question

2 Answers 2

active oldest votes
up vote 0 down vote
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO