Files
stellaamor.com/.htaccess

40 lines
1.4 KiB
ApacheConf
Raw Normal View History

2025-08-03 02:48:35 +02:00
# Enable the RewriteEngine
2024-12-25 17:05:50 +01:00
RewriteEngine On
2025-08-03 02:48:35 +02:00
RewriteCond %{REQUEST_URI} !(/$|\.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
2024-12-25 17:05:50 +01:00
2024-12-26 01:25:09 +01:00
2025-08-03 02:48:35 +02:00
# Redirect URLs without trailing slashes (except index.php) to URLs with trailing slashes
RewriteCond %{REQUEST_URI} !/index.php$
RewriteRule ^([^/]+)$ /$1/ [L,R=301]
2024-12-26 01:25:09 +01:00
2025-08-03 02:48:35 +02:00
# 404
ErrorDocument 404 /404
2025-08-03 02:48:35 +02:00
# Rewrite any single-word URL with a trailing slash like /about/ to index.php?page=about
RewriteRule ^([^/]+)/$ index.php?page=$1 [L,QSA]
2024-12-25 21:33:18 +01:00
2024-12-26 01:07:01 +01:00
# Enable GZip compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml
AddOutputFilterByType DEFLATE text/css text/javascript application/javascript
AddOutputFilterByType DEFLATE application/x-javascript application/json
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml
AddOutputFilterByType DEFLATE application/font-woff application/font-woff2
AddOutputFilterByType DEFLATE image/svg+xml
</IfModule>
2024-12-25 21:33:18 +01:00
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php8_module>
php_value output_buffering Off
</IfModule>
<IfModule lsapi_module>
php_value output_buffering Off
</IfModule>
2025-08-03 02:48:35 +02:00
# END cPanel-generated php ini directives, do not edit