Header always set Content-Security-Policy "upgrade-insecure-requests;"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Set default index page
DirectoryIndex index.php

# Allow index.php to load normally
RewriteRule ^index\.php$ - [L]

# Force HTTPS and www in a single rule
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.ciphertek\.in$ [NC]
RewriteRule ^(.*)$ https://www.ciphertek.in/$1 [L,R=301]

# Specific 301 Redirects
RewriteRule ^Products/Opsmart/?$ https://www.ciphertek.in/products/opsmart/ [L,R=301,NC]
# Redirect common typos and capitalization errors for the maintenance page to the correct lowercase file
RewriteCond %{REQUEST_URI} !^/hosting-and-server-maintenance-service-in-chennai\.php$
RewriteRule ^hosting-and-server-(maintenance|maintainance)-service-in-chennai\.php$ https://www.ciphertek.in/hosting-and-server-maintenance-service-in-chennai.php [L,R=301,NC]

</IfModule>

# Custom 404 error page
ErrorDocument 404 /404.php
Header always set Content-Security-Policy "upgrade-insecure-requests;"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Set default index page
DirectoryIndex index.php

# Allow index.php to load normally
RewriteRule ^index\.php$ - [L]

# Force HTTPS and www in a single rule
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.ciphertek\.in$ [NC]
RewriteRule ^(.*)$ https://www.ciphertek.in/$1 [L,R=301]

# Specific 301 Redirects
RewriteRule ^Products/Opsmart/?$ https://www.ciphertek.in/products/opsmart/ [L,R=301,NC]
# Redirect common typos and capitalization errors for the maintenance page to the correct lowercase file
RewriteCond %{REQUEST_URI} !^/hosting-and-server-maintenance-service-in-chennai\.php$
RewriteRule ^hosting-and-server-(maintenance|maintainance)-service-in-chennai\.php$ https://www.ciphertek.in/hosting-and-server-maintenance-service-in-chennai.php [L,R=301,NC]

</IfModule>

# Custom 404 error page
ErrorDocument 404 /404.php
Header always set Content-Security-Policy "upgrade-insecure-requests;"

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Set default index page
DirectoryIndex index.php

# Allow index.php to load normally
RewriteRule ^index\.php$ - [L]

# Force HTTPS and www in a single rule
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.ciphertek\.in$ [NC]
RewriteRule ^(.*)$ https://www.ciphertek.in/$1 [L,R=301]

# Specific 301 Redirects
RewriteRule ^Products/Opsmart/?$ https://www.ciphertek.in/products/opsmart/ [L,R=301,NC]
# Redirect common typos and capitalization errors for the maintenance page to the correct lowercase file
RewriteCond %{REQUEST_URI} !^/hosting-and-server-maintenance-service-in-chennai\.php$
RewriteRule ^hosting-and-server-(maintenance|maintainance)-service-in-chennai\.php$ https://www.ciphertek.in/hosting-and-server-maintenance-service-in-chennai.php [L,R=301,NC]

</IfModule>

# Custom 404 error page
ErrorDocument 404 /404.php
