Skip to content

Commit

Permalink
Add .htaccess file to configure URL rewriting for public directory ac…
Browse files Browse the repository at this point in the history
…cess
  • Loading branch information
kennedyowusu committed Jan 5, 2025
1 parent e05ff1b commit 55fcb99
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_URI} !^/public/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f



RewriteRule ^(.*)$ /public/$1
#RewriteRule ^ index.php [L]
RewriteRule ^(/)?$ public/index.php [L]
</IfModule>

0 comments on commit 55fcb99

Please sign in to comment.