I’m trying to get all request to the server to go to the index.php file with the request information.
Also, I want to prevent accessing the index.php file directly.
The second part works fine but I can’t do the first part for some reason
#If the request is for index - prevent from accessing the file directly RewriteRule ^(.*)index.php(.*)$ - [F,L] #If the request if not for the receiver - redirect to the api server #RewriteCond !^(*.)campaigns/(d+)/pictures(.*)$ [NC] RewriteRule index.php?request=$1 [NC,QSA,L]
What am I doing wrong?