Skip to content

Commit

Permalink
✨ Add .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaSecond committed May 27, 2024
1 parent 488ac70 commit b129d0a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Enable mod_rewrite
RewriteEngine On

# Set the base directory
RewriteBase /

# Redirect all requests to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

# Error pages
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html

0 comments on commit b129d0a

Please sign in to comment.