Skip to content

Commit

Permalink
improve example
Browse files Browse the repository at this point in the history
  • Loading branch information
techie-joe committed Nov 11, 2024
1 parent d810a46 commit 42843b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions htaccess/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ RewriteEngine On
RewriteCond %{REQUEST_URI} ^/forbidden/ [NC]
RewriteRule ^ - [R=404,L]
# This rule checks if the requested resource is not an existing file.
# This rule return 404 if the requested resource is not an existing file.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ - [R=404,L]
# This rule checks if the requested resource is not an existing directory.
# This rule redirects to index.php if the requested resource is not an existing directory.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ /index.php
# This rule redirects all requests to index.php
RewriteRule ^ /index.php
Expand Down

0 comments on commit 42843b9

Please sign in to comment.