Skip to main content
We are currently experiencing a higher than average ticket volume and as such our responses may be delayed. Searching on our Help Center articles or going to our Community is also a great resource for answers.

RewriteCond and RewriteRule




  • cPRex Jurassic Moderator

    Hey there!  Not teeeeeechnically related to cPanel, but I'll give it a shot :D

    It looks like this is taking direct access to images and returning a 403 Forbidden error to the client.  F is the forbidden error and NC make the file case-insensitive.

    The first two rules there seem to setup what gets rewritten, so it can either be the exact or a subdirectory.

  • jeffschips

    Thank yhou cPRex - I finally figured that out and yes that's correct.  It's to stop vagrants from shopping my images in my sites.  Appreciate the fast response.  SOLVED

  • cPRex Jurassic Moderator

    You're very welcome!


Please sign in to leave a comment.