
RewriteOptions inherit

RewriteEngine on



# for handling form submit
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !#^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond #%{REQUEST_URI} !^/\.well-known/pki-validation/#[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^.*$ /leads/contact-form.php [L]

#To redirect HTTP to HTTPS
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mookanana.com/$1 [R,L]
#To redirect www to non-www (while using SSL)
RewriteCond %{HTTP_HOST} ^www.mookanana.com$
RewriteCond %{SERVER_PORT} ^443
RewriteRule ^(.*)$ https://mookanana.com/$1 [R=301]

#
#RewriteCond %{SERVER_PORT} 80
#RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
#RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
#RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
#RewriteRule ^(.*)$ https://mookanana.com/$1 [R,L]

#To redirect www to non-www (while using SSL)#
#RewriteEngine On
#RewriteCond %{HTTP_HOST} ^www.mookanana.com$
#RewriteCond %{SERVER_PORT} ^443
#RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
#RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
#RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
#RewriteRule ^(.*)$ https://mookanana.com/$1 [R=301]

##########################Redirect 301 To New PhP Files##########################

redirect 301 /things-to-do-in-sakleshpur.html http://www.mookanana.com/places-to-visit-in-sakleshpur.php
redirect 301 /things-to-do.html http://www.mookanana.com/places-to-visit-in-sakleshpur.php
#redirect 301 /resort-in-sakleshpur-booking.php https://mookanana.com/booknow.php
redirect 301 /booknow.php https://live.ipms247.com/booking/book-rooms-mookananresort
redirect 301 /resort-in-sakleshpur-booking.php https://live.ipms247.com/booking/book-rooms-mookananresort
redirect 301 /images/tourist_brochures.pdf https://mookanana.com/Sakleshpur-Trekking-Spots-Sakleshpur-View-Point-Study-Tour.pdf
redirect 301 /images/brochures1.pdf https://mookanana.com/Resorts-in-Sakleshpur-Mookanana-Resort-Master-Plan.pdf
redirect 301 /images/brochures.pdf https://mookanana.com/Resorts-in-Sakleshpur-Mookanana-Resort-Master-Plan.pdf
redirect 301 /gallary.php http://www.mookanana.com/gallery.php
redirect 301 /rooms.html https://mookanana.com/best-resorts-homestays-to-stay-in-sakleshpur.php
redirect 301 /rooms.php https://mookanana.com/best-resorts-homestays-to-stay-in-sakleshpur.php
redirect 301 /event.php https://mookanana.com/events.php
redirect 301 /gallery.html https://mookanana.com/gallery.php
redirect 301 /investors.php https://mookanana.com/contact.php
redirect 301 /resorts-in-sakleshpur-with-swimming-pool.php https://mookanana.com/sakleshpur-resorts-with-swimming-pool.php
redirect 301 /corporate-team-outing.php https://mookanana.com/team-outings-resorts-bangalore-sakleshpur.php
redirect 301 /sight-seeing.php https://mookanana.com/sakleshpur-trekking-places.php
redirect 301 /sakleshpur-tourist-attractions.php https://mookanana.com/sakleshpur-trekking-places.php
redirect 301 /pool-djparty.php https://mookanana.com/events.php
#RewriteCond %{HTTP_HOST} ^mookanana\.com$ [OR]
#RewriteCond %{HTTP_HOST} ^www\.mookanana\.com$
#RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
#RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
#RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
#RewriteRule ^index\.php$ "https\:\/\/mookanana\.com\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^mookanana\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mookanana\.com$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^index\.php$ "https\:\/\/mookanana\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^mookanana\.ndezigners\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mookanana\.ndezigners\.com$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ "https\:\/\/mookanana\.com\/$1" [R=301,L]


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