I’m working with a framework and need to make a call to a specific file within a directory, however the directory is set up for url of all requests to index.php for the framework’s sake.
I have a file called check-session.php and need any requests to localhost/admin/check-session.php to execute the actual check-session.php file instead of route to index.php. How do I do that with .htaccess file within the same folder as check-session.php?
I have little to no experience with rewrite rules / conditions.
Find the RewriteRule that rewrites to index.php and put these directly before it:
That should stop it mapping to index.php if it’s a real file you request.
If that doesn’t work, post the actual rewrites in .htaccess