File: /var/www/html/sarvodayahospital/.htaccess_backup
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Server
RewriteCond %{HTTP_HOST} !=""
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Redirect All Unknown Page To Doctor Master Page
RedirectMatch 301 ^/doctorpage_video_booking/.*$ https://www.sarvodayahospital.com/doctors
</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>
# # Leverage Browser Caching
# <IfModule mod_expires.c>
# ExpiresActive On
# ExpiresByType image/jpg "access 1 year"
# ExpiresByType image/jpeg "access 1 year"
# ExpiresByType image/gif "access 1 year"
# ExpiresByType image/png "access 1 year"
# ExpiresByType text/css "access 1 month"
# ExpiresByType text/html "access 1 month"
# ExpiresByType application/pdf "access 1 month"
# ExpiresByType text/x-javascript "access 1 month"
# ExpiresByType application/x-shockwave-flash "access 1 month"
# ExpiresByType image/x-icon "access 1 year"
# ExpiresDefault "access 1 month"
# </IfModule>
# <IfModule mod_headers.c>
# <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
# Header set Cache-Control "max-age=2678400, public"
# </filesmatch>
# <filesmatch "\.(html|htm)$">
# Header set Cache-Control "max-age=7200, private, must-revalidate"
# </filesmatch>
# <filesmatch "\.(pdf)$">
# Header set Cache-Control "max-age=86400, public"
# </filesmatch>
# <filesmatch "\.(js)$">
# Header set Cache-Control "max-age=2678400, private"
# </filesmatch>
# </IfModule>
# # php -- BEGIN cPanel-generated handler, do not edit
# # Set the “ea-php81” package as the default “PHP” programming language.
# <IfModule mime_module>
# AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
# </IfModule>
# # php -- END cPanel-generated handler, do not edit