RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.+/$ - [F]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R] # <- for test, for prod use [L,R=301]

# HTTPS Redirection
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

# www Redirection
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^www\.indianiptv\.net$
RewriteRule ^/?$ "https\:\/\/www\.indianiptv\.net\/" [R=301,L]



#Remove Index.php
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/ 
RewriteRule ^index\.html$ http://%{HTTP_HOST}/ [R=301,L]

#RewriteCond %{REQUEST_FILENAME} =-f
#RewriteRule ^(.*)\.php$ $1.html [NC,L]
#RewriteRule ^(.*)\.html$  $1.php [NC,L]

#RewriteCond %{THE_REQUEST} (.*)\.php  
#RewriteRule ^(.*)\.php $1.html [R=301,L]  

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^([^\.]+)$ $1.php [NC,L]

RewriteCond %{THE_REQUEST} (.*)\.html  
RewriteRule ^(.*)\.html $1.php [L]  

<IfModule mod_deflate.c>
  # Compress HTML, CSS, JavaScript, Text, XML and fonts
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  AddOutputFilterByType DEFLATE application/x-font
  AddOutputFilterByType DEFLATE application/x-font-opentype
  AddOutputFilterByType DEFLATE application/x-font-otf
  AddOutputFilterByType DEFLATE application/x-font-truetype
  AddOutputFilterByType DEFLATE application/x-font-ttf
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE font/opentype
  AddOutputFilterByType DEFLATE font/otf
  AddOutputFilterByType DEFLATE font/ttf
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/xml

  # Remove browser bugs (only needed for really old browsers)
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  Header append Vary User-Agent
</IfModule>
#Customize expires cache start - adjust the period according to your needs
<IfModule mod_expires.c>
  FileETag MTime Size
  AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript
  ExpiresActive On
  ExpiresByType text/html "access 600 seconds"
  ExpiresByType application/xhtml+xml "access 600 seconds"
  ExpiresByType text/css "access 1 month"
  ExpiresByType text/javascript "access 1 month"
  ExpiresByType text/x-javascript "access 1 month"
  ExpiresByType application/javascript "access 1 month"
  ExpiresByType application/x-javascript "access 1 month"
  ExpiresByType application/x-shockwave-flash "access 1 month"
  ExpiresByType application/pdf "access 1 month"
  ExpiresByType image/x-icon "access 1 year"
  ExpiresByType image/jpg "access 1 year"  
  ExpiresByType image/jpeg "access 1 year"
  ExpiresByType image/png "access 1 year"
  ExpiresByType image/gif "access 1 year"
  ExpiresDefault "access 1 month"
</IfModule>
#Expires cache end

# BEGIN Cache-Control Headers
<IfModule mod_expires.c>
  <IfModule mod_headers.c>
    <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
      Header append Cache-Control "public"  
    </filesMatch>
    <filesMatch "\.(css)$">
      Header append Cache-Control "public"
    </filesMatch>
    <filesMatch "\.(js)$">
      Header append Cache-Control "private"
    </filesMatch>
    <filesMatch "\.(x?html?|php)$">
      Header append Cache-Control "private, must-revalidate"
    </filesMatch>
  </IfModule>
</IfModule>

# Disable ETags
<IfModule mod_headers.c>
	Header unset ETag
</IfModule>
FileETag None

<ifModule mod_headers.c>
Header set Connection keep-alive 
</ifModule>



Redirect 301 /which-is-the-legitimate-indian-iptv-website-and-how-to-identify-it.html  https://voisiptv.ca/which-is-the-legitimate-indian-iptv-website-and-how-to-identify-it
Redirect 301 /thankyou-buy.html  https://voisiptv.ca/thankyou-buy
Redirect 301 /thankyou.html  https://voisiptv.ca/thankyou
Redirect 301 /policy.html  https://voisiptv.ca/policy
Redirect 301 /need-help.html  https://voisiptv.ca/need-help
Redirect 301 /plan-package.html  https://voisiptv.ca/plan-package
Redirect 301 /offer.html  https://voisiptv.ca/offer
Redirect 301 /video-on-demand.html  https://voisiptv.ca/video-on-demand
Redirect 301 /about.html  https://voisiptv.ca/about
Redirect 301 /tvchannel.html  https://voisiptv.ca/tvchannel
Redirect 301 /punjabi-channels.html  https://voisiptv.ca/punjabi-iptv-channels
Redirect 301 /hindi-channels.html  https://voisiptv.ca/hindi-iptv-channels
Redirect 301 /english-channels.html https://voisiptv.ca/english-iptv-channels
Redirect 301 /bengali-channels.html https://voisiptv.ca/bengali-iptv-channels
Redirect 301 /gujarati-channels.html https://voisiptv.ca/gujarati-iptv-channels
Redirect 301 /marathi-channels.html https://voisiptv.ca/marathi-iptv-channels
Redirect 301 /tamil-channels.html https://voisiptv.ca/tamil-iptv-channels
Redirect 301 /telugu-channels.html https://voisiptv.ca/telugu-iptv-channels
Redirect 301 /malayalam-channels.html https://voisiptv.ca/malayalam-iptv-channels
Redirect 301 /kannada-channels.html https://voisiptv.ca/kannada-iptv-channels
Redirect 301 /urdu-channels.html https://voisiptv.ca/urdu-iptv-channels
Redirect 301 /setup-box.html https://voisiptv.ca/iptv-set-top-box



Redirect 301 /malayalam-channels.html/bengali-channels.html  https://voisiptv.ca/bengali-channels.html
Redirect 301 /malayalam-channels.html/buy-now.html  https://voisiptv.ca/buy-now.html
Redirect 301 /malayalam-channels.html/english-channels.html  https://voisiptv.ca/english-channels.html
Redirect 301 /malayalam-channels.html/gujarati-channels.html  https://voisiptv.ca/gujarati-channels.html
Redirect 301 /malayalam-channels.html/hindi-channels.html  https://voisiptv.ca/hindi-channels.html
Redirect 301 /malayalam-channels.html/kannada-channels.html  https://voisiptv.ca/kannada-channels.html
Redirect 301 /malayalam-channels.html/malayalam-channels.html  https://voisiptv.ca/malayalam-channels.html
Redirect 301 /malayalam-channels.html/marathi-channels.html  https://voisiptv.ca/marathi-channels.html
Redirect 301 /malayalam-channels.html/need-help.html  https://voisiptv.ca/need-help.html
Redirect 301 /malayalam-channels.html/offer.html  https://voisiptv.ca/need-help.html
Redirect 301 /malayalam-channels.html/plan-package.html  https://voisiptv.ca/plan-package.html
Redirect 301 /malayalam-channels.html/policy.html  https://voisiptv.ca/policy.html
Redirect 301 /malayalam-channels.html/punjabi-channels.html  https://voisiptv.ca/punjabi-channels.html
Redirect 301 /malayalam-channels.html/setup-box.html  https://voisiptv.ca/setup-box.html
Redirect 301 /malayalam-channels.html/sitemap.xml  https://voisiptv.ca/sitemap.xml
Redirect 301 /malayalam-channels.html/telugu-channels.html  https://voisiptv.ca/telugu-channels.html
Redirect 301 /malayalam-channels.html/tvchannel.html https://voisiptv.ca/tvchannel.html
Redirect 301 /malayalam-channels.html/urdu-channels.html https://voisiptv.ca/urdu-channels.html
Redirect 301 /malayalam-channels.html/video-on-demand.html https://voisiptv.ca/video-on-demand.html
Redirect 301 /offer.html/1000 https://voisiptv.ca/offer.html
Redirect 301 /offer.html/about.html https://voisiptv.ca/about.html
Redirect 301 /offer.html/bengali-channels.html https://voisiptv.ca/bengali-channels.html
Redirect 301 /offer.html/english-channels.html https://voisiptv.ca/english-channels.html
Redirect 301 /offer.html/hindi-channels.html https://voisiptv.ca/hindi-channels.html
Redirect 301 /offer.html/marathi-channels.html https://voisiptv.ca/marathi-channels.html
Redirect 301 /offer.html/need-help.html https://voisiptv.ca/need-help.html
Redirect 301 /offer.html/offer.html https://voisiptv.ca/offer.html
Redirect 301 /offer.html/plan-package.html https://voisiptv.ca/plan-package.html
Redirect 301 /offer.html/policy.html https://voisiptv.ca/policy.html
Redirect 301 /offer.html/setup-box.html https://voisiptv.ca/setup-box.html
Redirect 301 /offer.html/sitemap.xml https://voisiptv.ca/sitemap.xml
Redirect 301 /offer.html/tamil-channels.html https://voisiptv.ca/tamil-channels.html
Redirect 301 /offer.html/tvchannel.html https://voisiptv.ca/tvchannel.html
Redirect 301 /offer.html/urdu-channels.html https://voisiptv.ca/urdu-channels.html
Redirect 301 /offer.html/video-on-demand.html https://voisiptv.ca/video-on-demand.html
Redirect 301 /setup-box.html/1000 https://voisiptv.ca/setup-box.html
Redirect 301 /setup-box.html/bengali-channels.html https://voisiptv.ca/bengali-channels.html
Redirect 301 /setup-box.html/buy-now.html https://voisiptv.ca/buy-now.html
Redirect 301 /setup-box.html/english-channels.html https://voisiptv.ca/english-channels.html
Redirect 301 /setup-box.html/gujarati-channels.html https://voisiptv.ca/gujarati-channels.html
Redirect 301 /setup-box.html/hindi-channels.html https://voisiptv.ca/hindi-channels.html
Redirect 301 /setup-box.html/kannada-channels.html https://voisiptv.ca/kannada-channels.html
Redirect 301 /setup-box.html/marathi-channels.html https://voisiptv.ca/marathi-channels.html
Redirect 301 /setup-box.html/need-help.html https://voisiptv.ca/need-help.html
Redirect 301 /setup-box.html/offer.html https://voisiptv.ca/offer.html
Redirect 301 /setup-box.html/plan-package.html https://voisiptv.ca/plan-package.html
Redirect 301 /setup-box.html/policy.html https://voisiptv.ca/policy.html
Redirect 301 /setup-box.html/setup-box.html  https://voisiptv.ca/setup-box.html
Redirect 301 /setup-box.html/sitemap.xml  https://voisiptv.ca/sitemap.xml
Redirect 301 /setup-box.html/tvchannel.html  https://voisiptv.ca/tvchannel.html
Redirect 301 /setup-box.html/urdu-channels.html  https://voisiptv.ca/urdu-channels.html
Redirect 301 /setup-box.html/video-on-demand.html  https://voisiptv.ca/video-on-demand.html
Redirect 301 /tamil-channels.html/1000  https://voisiptv.ca/tamil-channels.html
Redirect 301 /tamil-channels.html/about.html https://voisiptv.ca/about.html
Redirect 301 /tamil-channels.html/bengali-channels.html https://voisiptv.ca/bengali-channels.html
Redirect 301 /tamil-channels.html/buy-now.html https://voisiptv.ca/buy-now.html
Redirect 301 /tamil-channels.html/english-channels.html https://voisiptv.ca/english-channels.html
Redirect 301 /tamil-channels.html/gujarati-channels.html https://voisiptv.ca/gujarati-channels.html
Redirect 301 /tamil-channels.html/hindi-channels.html https://voisiptv.ca/hindi-channels.html
Redirect 301 /tamil-channels.html/kannada-channels.html https://voisiptv.ca/kannada-channels.html
Redirect 301 /tamil-channels.html/malayalam-channels.html https://voisiptv.ca/malayalam-channels.html
Redirect 301 /tamil-channels.html/marathi-channels.html https://voisiptv.ca/marathi-channels.html
Redirect 301 /tamil-channels.html/need-help.html https://voisiptv.ca/need-help.html
Redirect 301 /tamil-channels.html/offer.html https://voisiptv.ca/offer.html
Redirect 301 /tamil-channels.html/plan-package.html https://voisiptv.ca/plan-package.html
Redirect 301 /tamil-channels.html/policy.html https://voisiptv.ca/policy.html
Redirect 301 /tamil-channels.html/punjabi-channels.html https://voisiptv.ca/punjabi-channels.html
Redirect 301 /tamil-channels.html/setup-box.html https://voisiptv.ca/sitemap.xml
Redirect 301 /tamil-channels.html/sitemap.xml https://voisiptv.ca/tvchannel.html
Redirect 301 /tamil-channels.html/tamil-channels.html https://voisiptv.ca/tamil-channels.html
Redirect 301 /tamil-channels.html/tvchannel.html https://voisiptv.ca/tvchannel.html
Redirect 301 /tamil-channels.html/urdu-channels.html https://voisiptv.ca/urdu-channels.html
Redirect 301 /tamil-channels.html/video-on-demand.html https://voisiptv.ca/video-on-demand.html
Redirect 301 /telugu-channels.html/1000 https://voisiptv.ca/telugu-channels.html
Redirect 301 /telugu-channels.html/about.html https://voisiptv.ca/about.html
Redirect 301 /telugu-channels.html/bengali-channels.html https://voisiptv.ca/bengali-channels.html
Redirect 301 /telugu-channels.html/buy-now.html https://voisiptv.ca/buy-now.html
Redirect 301 /telugu-channels.html/english-channels.html https://voisiptv.ca/english-channels.html
Redirect 301 /telugu-channels.html/gujarati-channels.html https://voisiptv.ca/gujarati-channels.html
Redirect 301 /telugu-channels.html/hindi-channels.html https://voisiptv.ca/hindi-channels.html
Redirect 301 /telugu-channels.html/kannada-channels.html https://voisiptv.ca/kannada-channels.html
Redirect 301 /telugu-channels.html/malayalam-channels.html https://voisiptv.ca/malayalam-channels.html
Redirect 301 /telugu-channels.html/marathi-channels.html https://voisiptv.ca/marathi-channels.html
Redirect 301 /telugu-channels.html/need-help.html https://voisiptv.ca/need-help.html
Redirect 301 /telugu-channels.html/offer.html https://voisiptv.ca/offer.html
Redirect 301 /telugu-channels.html/plan-package.html https://voisiptv.ca/plan-package.html
Redirect 301 /telugu-channels.html/policy.html https://voisiptv.ca/policy.html
Redirect 301 /telugu-channels.html/punjabi-channels.html https://voisiptv.ca/punjabi-channels.html
Redirect 301 /telugu-channels.html/setup-box.html https://voisiptv.ca/setup-box.html
Redirect 301 /telugu-channels.html/sitemap.xml https://voisiptv.ca/sitemap.xml
Redirect 301 /telugu-channels.html/tamil-channels.html https://voisiptv.ca/tamil-channels.html
Redirect 301 /telugu-channels.html/telugu-channels.html https://voisiptv.ca/telugu-channels.html
Redirect 301 /telugu-channels.html/tvchannel.html https://voisiptv.ca/tvchannel.html
Redirect 301 /telugu-channels.html/urdu-channels.html https://voisiptv.ca/urdu-channels.html
Redirect 301 /telugu-channels.html/video-on-demand.html https://voisiptv.ca/video-on-demand.html
Redirect 301 /tvchannel.html/about.html https://voisiptv.ca/about.html
Redirect 301 /tvchannel.html/bengali-channels.html https://voisiptv.ca/bengali-channels.html
Redirect 301 /tvchannel.html/buy-now.html https://voisiptv.ca/buy-now.html
Redirect 301 /tvchannel.html/english-channels.html https://voisiptv.ca/english-channels.html
Redirect 301 /tvchannel.html/gujarati-channels.html https://voisiptv.ca/gujarati-channels.html
Redirect 301 /tvchannel.html/hindi-channels.html https://voisiptv.ca/hindi-channels.html
Redirect 301 /tvchannel.html/malayalam-channels.html https://voisiptv.ca/malayalam-channels.html
Redirect 301 /tvchannel.html/marathi-channels.html https://voisiptv.ca/marathi-channels.html
Redirect 301 /tvchannel.html/need-help.html https://voisiptv.ca/need-help.html
Redirect 301 /tvchannel.html/offer.html https://voisiptv.ca/offer.html
Redirect 301 /tvchannel.html/plan-package.html https://voisiptv.ca/plan-package.html
Redirect 301 /tvchannel.html/policy.html https://voisiptv.ca/policy.html
Redirect 301 /tvchannel.html/punjabi-channels.html https://voisiptv.ca/punjabi-channels.html
Redirect 301 /tvchannel.html/setup-box.html https://voisiptv.ca/setup-box.html
Redirect 301 /tvchannel.html/sitemap.xml https://voisiptv.ca/sitemap.xml
Redirect 301 /tvchannel.html/tvchannel.html https://voisiptv.ca/tvchannel.html
Redirect 301 /tvchannel.html/video-on-demand.html https://voisiptv.ca/video-on-demand.html

Redirect 301 /malayalam-channels.html/1000  https://voisiptv.ca/malayalam-channels.html
Redirect 301 /tamil-channels.html/1000  https://voisiptv.ca/tamil-channels.html
Redirect 301 /tvchannel.html/1000  https://voisiptv.ca/tvchannel.html
Redirect 301 /iptv_20.html  https://voisiptv.ca
Redirect 301 /main  https://voisiptv.ca
#Redirect 301 /raid1/indianitv/public_html/indianiptv.net/marathi-channels.html  https://voisiptv.ca/marathi-channels.html
Redirect 301 https://voisiptv.ca/marathi-channels.php  https://voisiptv.ca/marathi-channels.html

RewriteEngine on


RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]

RewriteEngine on


RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]

ErrorDocument 404 /404.php

# php -- BEGIN cPanel-generated handler, do not edit
# This domain inherits the “PHP” package.
# php -- END cPanel-generated handler, do not edit
