RewriteEngine On
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L,NC]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^(.*)\.do$  $1.php [NC,L]

#FOR SEO FRIENDLY VIRTUAL URL
RewriteRule ^(.*)\.html$  default.php?page=$1&%{QUERY_STRING}
RewriteRule ^(.*)\.htm$  default.php?page=$1&%{QUERY_STRING} [NC,L] 

RewriteEngine On
RewriteCond %{HTTP} off
RewriteRule (.*) https://demo.innovatethreads.com/deeptech/%{REQUEST_URI} [L,R=301,NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
#RewriteRule ^([^\.]+)$ $1.php [NC,L]
#RewriteRule ^(.*)\.php$ $1.php  [L,R=301]
#RewriteRule ^(.*)$ $1 [L]
RewriteRule ^(.*)$ $1.php

<IfModule mod_expires.c>

# Enable expirations
ExpiresActive On

# Default directive
ExpiresDefault "access plus 1 month"

# My favicon
ExpiresByType image/x-icon "access plus 1 yearâ€

# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"

# CSS
ExpiresByType text/css "access 1 monthâ€

# Javascript
ExpiresByType application/javascript "access plus 1 year"

</IfModule>
<IfModule mod_headers.c>
   <FilesMatch "\.(js|css|xml|gz)$">
     Header append Vary: Accept-Encoding
   </FilesMatch>
</IfModule>

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

RewriteCond %{HTTP_HOST} ^nawaltourandtravels.in/$
RewriteRule ^/?$ "http\:\/\/www\.nawaltourandtravels\.in\/" [R=301,L]

# mod_pagespeed configuration - Do NOT modify the contents
<IfModule pagespeed_module>
    ModPagespeedDomain *
    ModPagespeed on
</IfModule>
# End of mod_pagespeed configuration- Do NOT modify the contents
