AddDefaultCharset UTF-8 ## 404 Error Page ## If Pligg is installed in a subfolder, change the below line to ErrorDocument 404 /name-of-subfolder/error_404.php ErrorDocument 404 /error_404.php ## Re-directing Begin # For security reasons, Option followsymlinks cannot be overridden. #Options +FollowSymlinks -MultiViews Options +SymLinksIfOwnerMatch -MultiViews RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.(.*) RewriteRule ^.*$ https://%1/$1 [R=301,L] ## If Pligg is installed in a subfolder, change the below line to RewriteBase /name-of-subfolder RewriteBase / ## Force forward slash at the end of URL RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ ## If installed in a subfolder, you will need to add that directory after {HTTP_HOST} on the next line. RewriteRule (.*)([^/])$ https://%{HTTP_HOST}/$1$2/ [R=301,L] ## If installed in a subfolder you may need to add ## to the beginning of the next line RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/ ## Comment out or remove these two lines if you have a sub-domain like: http://subdomain.pligg.com or http://localhost ## Keep if your site is like: http://www.pligg.com RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} !^localhost RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] ##### Re-directing End #####