26 lines
586 B
ApacheConf
26 lines
586 B
ApacheConf
# Prevent directory browsing
|
|
Options -Indexes
|
|
|
|
# Enable rewrite engine (optional, for clean URLs)
|
|
RewriteEngine On
|
|
|
|
# Redirect /semesterapparat to semesterapparat.php
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^semesterapparat$ semesterapparat.php [L]
|
|
|
|
# Redirect /elsa to elsa.php
|
|
RewriteRule ^elsa$ elsa.php [L]
|
|
|
|
# Protect config files
|
|
<FilesMatch "^(config|functions)\.php$">
|
|
Order allow,deny
|
|
Deny from all
|
|
</FilesMatch>
|
|
|
|
# Set default charset
|
|
AddDefaultCharset UTF-8
|
|
|
|
# Error pages (customize as needed)
|
|
ErrorDocument 404 /index.php
|