30 lines
926 B
ApacheConf
30 lines
926 B
ApacheConf
RewriteEngine On
|
|
|
|
|
|
RewriteCond %{HTTPS} off
|
|
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
|
RewriteRule ^([^/]+)/?$ $1.php [L]
|
|
|
|
# Redirect to HTTPS with a 301 redirect
|
|
RewriteCond %{HTTPS} off
|
|
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
|
|
# Set canonical URL for HTML documents
|
|
# <FilesMatch "\.html$">
|
|
# Header set Link "<https://tech4bizsolutions.com/%{REQUEST_URI}>; rel=\"canonical\""
|
|
# </FilesMatch>
|
|
|
|
RewriteCond %{HTTP_HOST} ^https://www.tech4bizsolutions.com$ [NC]
|
|
RewriteRule ^(.*)$ https://tech4bizsolutions.com/$1 [R=301,L]
|
|
|
|
# php -- BEGIN cPanel-generated handler, do not edit
|
|
# Set the “ea-php82” package as the default “PHP” programming language.
|
|
<IfModule mime_module>
|
|
AddHandler application/x-httpd-ea-php82___lsphp .php .php8 .phtml
|
|
</IfModule>
|
|
# php -- END cPanel-generated handler, do not edit
|