Skip to main content

How to use RewriteRule in order to block out some directives, in .htaccess

Comments

4 comments

  • kadrin
    Block post request something liek this rule # send all other post requests to 403 forbidden RewriteRule ^ /editBlackAndWhite [F]
    0
  • guldvog
    # send all other post requests to 403 forbidden RewriteRule ^/editBlackAndWhite [F] RewriteRule ^/sadad24 [F]
    0
  • cPanelLauren
    Thanks @kadrin @guldvog can you let us know if that worked for you?
    0
  • guldvog
    :-DYAP!! :-D There are two - alternative - approaches: 1. If you need to do a special redirect: .htaccess # I had to rewrite this section myself, to make certain that only the root part of the said domain would go to https:// ... RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} "/" RewriteRule ^(.*)$
    0

Please sign in to leave a comment.