RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.samaranpvc.com/$1 [R,L]

RewriteEngine On
RewriteCond %{HTTP_HOST} ^samaranpvc.com
RewriteRule (.*) https://www.samaranpvc.com/$1 [R=301,L]

ErrorDocument 404 https://www.samaranpvc.com/404.php

<IfModule mod_rewrite.c>
    RewriteEngine on
    
    RewriteRule about/([^/]*) ./about.php
    RewriteRule video/([^/]*) ./video.php
    RewriteRule contact/([^/]*) ./contact.php
    RewriteRule blog/([^/]*) ./blog.php
    RewriteRule blog-group/([^/]*)/ ./blog.php?tid=$1   [NC,L]
    RewriteRule single/([^/]*)/ ./single-blog.php?id=$1   [NC,L]
    RewriteRule shop/([^/]*) ./shop.php
    RewriteRule product/([^/]*)/ ./shop-single.php?id=$1   [NC,L]
    RewriteRule shop-group/([^/]*)/ ./shop.php?tid=$1   [NC,L]

<IfModule mod_headers.c>
Header set Connection keep-alive 
</IfModule>
<IfModule mod_mime.c>
 AddType application/x-javascript .js
 AddType text/css .css
</IfModule>
<IfModule mod_deflate.c>
 AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/javascript
# BEGIN EXPIRES
# END EXPIRES
#Expire Header
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresDefault "access plus 2 hours"
</FilesMatch>
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 10 days"
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/plain "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType application/x-javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 week"
    ExpiresByType application/x-icon "access plus 1 year"
</IfModule>
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
