This commit is contained in:
2025-02-02 18:45:42 +05:30
parent ecebef5a4a
commit c4c8ba334e
6 changed files with 210 additions and 118 deletions

View File

@@ -1,6 +1,9 @@
Options -Indexes
RewriteEngine On
RewriteCond $1 !^(index\.php)
RewriteCond %{REQUEST_FILENAME} !-f
# Check if the request is not for an existing directory or file
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
# Rewrite all other URLs to index.php with the 'url' parameter
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]