RewriteEngine On
RewriteCond %{HTTP_HOST}  !^www\.dlfhomes\.co.in$ [NC]
RewriteRule ^(.*) https://www.dlfhomes.co.in/$1 [L,R=301]

RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{dlfhomes.co.in} [L,R=301]

<IfModule mod_headers.c>
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|svg|eot|webm|mp4|webp|woff2|woff|ttf|htm|html|png|gif|js|css|swf)$">
 ExpiresDefault "access plus 1 year"
</FilesMatch>
</IfModule>

<IfModule mod_deflate.c>
    #The following line is enough for .js and .css
    AddOutputFilter DEFLATE js css
    AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp text/html
 
    #The following lines are to avoid bugs with some browsers
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
</IfModule>

 
<IfModule mod_headers.c>
    <FilesMatch "\.(js|css|html|htm|xhtml|xml|gz)$">
        Header append Vary Accept-Encoding
    </FilesMatch>
    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|mp4|svg|eot|webm|webp|woff2|woff|ttf|htm|html|png|gif|js|css|swf)$">  
        Header set Cache-Control "public"  
    </FilesMatch>  
    <FilesMatch "\.(css)$">  
        Header set Cache-Control "public"  
    </FilesMatch>  
    <FilesMatch "\.(js)$">  
        Header set Cache-Control "private"  
    </FilesMatch>  
    <FilesMatch "\.(x?html?|php)$">  
        Header set Cache-Control "public, must-revalidate"  
    </FilesMatch>
</IfModule>

RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ https://www.triversehomes.com/dlfhomes/$1 [R=301,L]

RedirectMatch 301   /dlf-privana.php   https://www.triversehomes.com/dlfhomes/dlf-privana.php
RedirectMatch 301   /dlf-phase-6.php   https://www.triversehomes.com/dlfhomes/dlf-phase-6.php
RedirectMatch 301   /dlf-alameda/   https://www.triversehomes.com/dlfhomes/dlf-alameda/
RedirectMatch 301   /dlf-arbour-sector-63-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-arbour-sector-63-gurgaon/
RedirectMatch 301   /dlf-belaire/   https://www.triversehomes.com/dlfhomes/dlf-belaire/
RedirectMatch 301   /dlf-club-arcade-sector-91-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-club-arcade-sector-91-gurgaon/
RedirectMatch 301   /dlf-corporate-greens/   https://www.triversehomes.com/dlfhomes/dlf-corporate-greens/
RedirectMatch 301   /dlf-floors-phase-1-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-floors-phase-1-gurgaon/
RedirectMatch 301   /dlf-floors-phase-2-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-floors-phase-2-gurgaon/
RedirectMatch 301   /dlf-floors-phase-3-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-floors-phase-3-gurgaon/
RedirectMatch 301   /dlf-floors-phase-4-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-floors-phase-4-gurgaon/
RedirectMatch 301   /dlf-galleria91/   https://www.triversehomes.com/dlfhomes/dlf-galleria91/
RedirectMatch 301   /dlf-garden-city-floors/   https://www.triversehomes.com/dlfhomes/dlf-garden-city-floors/
RedirectMatch 301   /dlf-gardencity-enclave-floors-sector-93-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-gardencity-enclave-floors-sector-93-gurgaon/
RedirectMatch 301   /dlf-grove-floors-phase-5-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-grove-floors-phase-5-gurgaon/
RedirectMatch 301   /dlf-imperial-residences/   https://www.triversehomes.com/dlfhomes/dlf-imperial-residences/
RedirectMatch 301   /dlf-midtown-moti-nagar-delhi/   https://www.triversehomes.com/dlfhomes/dlf-midtown-moti-nagar-delhi/
RedirectMatch 301   /dlf-park-place/   https://www.triversehomes.com/dlfhomes/dlf-park-place/
RedirectMatch 301   /dlf-platinum-residences-phase-4-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-platinum-residences-phase-4-gurgaon/
RedirectMatch 301   /dlf-plots-parc-estate-siruseri-chennai/   https://www.triversehomes.com/dlfhomes/dlf-plots-parc-estate-siruseri-chennai/
RedirectMatch 301   /dlf-preleased-commercial-shops-offices/   https://www.triversehomes.com/dlfhomes/dlf-preleased-commercial-shops-offices/
RedirectMatch 301   /dlf-primus/   https://www.triversehomes.com/dlfhomes/dlf-primus/
RedirectMatch 301   /dlf-privana-north-sector-76-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-privana-north-sector-76-gurgaon/
RedirectMatch 301   /dlf-privana-south-sector-77-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-privana-south-sector-77-gurgaon/
RedirectMatch 301   /dlf-privana-west-sector-76-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-privana-west-sector-76-gurgaon/
RedirectMatch 301   /dlf-regal-gardens/   https://www.triversehomes.com/dlfhomes/dlf-regal-gardens/
RedirectMatch 301   /dlf-royale-residences/   https://www.triversehomes.com/dlfhomes/dlf-royale-residences/
RedirectMatch 301   /dlf-samavana-kasauli/   https://www.triversehomes.com/dlfhomes/dlf-samavana-kasauli/
RedirectMatch 301   /dlf-sco-plots-alameda-central-sector-73-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-sco-plots-alameda-central-sector-73-gurgaon/
RedirectMatch 301   /dlf-sco-plots-arcade-sector-68-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-sco-plots-arcade-sector-68-gurgaon/
RedirectMatch 301   /dlf-sco-plots-central-sector-67-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-sco-plots-central-sector-67-gurgaon/
RedirectMatch 301   /dlf-sco-plots-sector-84-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-sco-plots-sector-84-gurgaon/
RedirectMatch 301   /dlf-skycourt/   https://www.triversehomes.com/dlfhomes/dlf-skycourt/
RedirectMatch 301   /dlf-star-tower/   https://www.triversehomes.com/dlfhomes/dlf-star-tower/
RedirectMatch 301   /dlf-summit/   https://www.triversehomes.com/dlfhomes/dlf-summit/
RedirectMatch 301   /dlf-ultima-gurgaon/   https://www.triversehomes.com/dlfhomes/dlf-ultima-gurgaon/
RedirectMatch 301   /dlf-west-park-andheri-west-mumbai/   https://www.triversehomes.com/dlfhomes/dlf-west-park-andheri-west-mumbai/
RedirectMatch 301   /dlf-woodland-heights-bangalore/   https://www.triversehomes.com/dlfhomes/dlf-woodland-heights-bangalore/
RedirectMatch 301   /dlf-camellias/   https://www.triversehomes.com/dlfhomes/
RedirectMatch 301   /dlf-kings-court-delhi/   https://www.triversehomes.com/dlfhomes/
RedirectMatch 301   /dlf-crest/   https://www.triversehomes.com/dlfhomes/
RedirectMatch 301   /dlf-valley-floors-panchkula/   https://www.triversehomes.com/dlfhomes/
RedirectMatch 301   /dlf-valley-gardens-floors-panchkula/   https://www.triversehomes.com/dlfhomes/



<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font\.css)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>

#error 404
ErrorDocument 404 /404.html

ServerSignature Off