htaccess.madewithlove.com
htaccess.madewithlove.com copied to clipboard
Implement -f and -d by allowing to add existing files and directories
A suggestion for the following:
RewriteCond {%REQUEST_FILENAME} !-f RewriteCond {%REQUEST_FILENAME} !-d
You can create two text boxes (since this is for testing). One for existing directories > (you can allow them to input directory paths). The other is for existing files. If an > existing file is in a non-existing directory make it warn the user.
Then you have something to check against the two conditions.