# Enable GZIP compression
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/json
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE font/ttf
  AddOutputFilterByType DEFLATE font/otf
  AddOutputFilterByType DEFLATE font/woff
  AddOutputFilterByType DEFLATE font/woff2
  AddOutputFilterByType DEFLATE image/svg+xml

  # Exclude old browsers (optional)
  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_expires.c>
ExpiresActive on
ExpiresByType text/css "access plus 14 days"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType text/javascript "access plus 14 days"
ExpiresByType application/x-javascript "access plus 14 days"
ExpiresByType image/ico "access plus 14 days"
ExpiresByType image/jpg "access plus 14 days"
ExpiresByType image/jpeg "access plus 14 days"
ExpiresByType image/gif "access plus 14 days"
ExpiresByType image/png "access plus 14 days"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType text/html "access plus 14 days"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
</IfModule>
<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 application/pdf "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 image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
<IfModule mod_headers.c>
  <FilesMatch ".(js|css|xml|gz|html)$">
    Header append Vary: Accept-Encoding
  </FilesMatch>
</IfModule>

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
Header set Expires "Thu, 23 Jul 2026 20:00:00 GMT"
Header unset ETag
FileETag None
</FilesMatch>


RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} uuuu7u^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus

RewriteRule ^.* - [F,L]
### WWW & HTTPS
# ensure www.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ensure https
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ErrorDocument 404 https://www.alokikastro.com
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^index\.htm$ index.php
RewriteRule ^photo-gallery\.htm$ photo-gallery.php
RewriteRule ^video-gallery\.htm$ video-gallery.php
RewriteRule ^search\.htm$ search.php
RewriteRule ^weight-calculator\.htm$ weight-calculator.php
RewriteRule ^clients\.htm$ clients.php
RewriteRule ^certificate\.htm$ certificate.php
RewriteRule ^error\.htm$ error.php
RewriteRule ^market-area\.htm$ market.php
RewriteRule ^blog\.htm$ blog.php
RewriteRule ^blog/([^/]*)\.htm$  blog-details.php?blog_name=$1&caa=$1 [L]
RewriteRule ^about-us\.htm$ about.php
RewriteRule ^manufacturing\.htm$ manufacturing.php
RewriteRule ^packages\.htm$ packages.php
RewriteRule ^packages/([^/]*)\.htm$  packages-details.php [L]

RewriteRule ^faq\.htm$ faq.php
RewriteRule ^contact-us\.htm$ contact.php
RewriteRule ^privacy-policy\.htm$ privacy-policy.php
RewriteRule ^gallery\.htm$ gallery.php
RewriteRule ^testimonials\.htm$ testimonials.php
RewriteRule ^gallery-products\.htm$ gallery-products.php
RewriteRule ^sitemap\.htm$ sitemap.php
RewriteRule ^calendar-2024\.htm$ calendar-2024.php
RewriteRule \.htm$ category.php
RewriteRule ^([^/]*)/$ index_sub.php?cid=$1 [L]
RewriteRule ^([^/]*)/([^/]*)\.htm$  category_sub.php?pid=$2&ca=$1 [L]



# Redirect contact.php to contact-us.htm
RewriteCond %{THE_REQUEST} \s/contact\.php [NC]
RewriteRule ^contact\.php$ /contact-us.htm [R=301,L]

# Redirect video-gallery.php to video-gallery.htm
RewriteCond %{THE_REQUEST} \s/video-gallery\.php [NC]
RewriteRule ^video-gallery\.php$ /video-gallery.htm [R=301,L]

Redirect 301 /about.html https://www.alokikastro.com/about-us.htm
Redirect 301 /nakshatra.html https://www.alokikastro.com/nakshatra-dosh-puja.htm
Redirect 301 /vedic-kundali.html https://www.alokikastro.com/kundli-dosh-and-remedies.htm
Redirect 301 /lal-kitab.html https://www.alokikastro.com/lal-kitab-astrologer.htm
Redirect 301 /vaastu.html https://www.alokikastro.com/vastu-consultant.htm
Redirect 301 /appointments.html https://www.alokikastro.com/contact-us.htm
Redirect 301 /blog.html https://www.alokikastro.com/blog.htm
Redirect 301 /calendar-2024.html https://www.alokikastro.com/calendar-2024.htm
Redirect 301 /contact.html https://www.alokikastro.com/contact-us.htm
Redirect 301 /gallery.html https://www.alokikastro.com/photo-gallery.htm
Redirect 301 /gem-stones.html https://www.alokikastro.com/gemstones.htm
Redirect 301 /kalsarpa-yoga.html https://www.alokikastro.com/kaalsarp-dosh-puja.htm
Redirect 301 /mangal-dosha.html https://www.alokikastro.com/mangal-puja.htm
Redirect 301 /facts-about-planets.html  https://www.alokikastro.com/navgrah-9-planets-puja.htm
Redirect 301 /saturn-sade-sati.html https://www.alokikastro.com/saturn-shani-sade-sati-puja-and-remedies.htm
Redirect 301 /everything-you-need-to-know-about-marriage-astrology.html https://www.alokikastro.com/marriage-astrology.htm

Redirect 301 /uae/love-marriage-astrology.htm https://www.alokikastro.com/uae-united-arab-emirates/love-marriage-astrology.htm
Redirect 301 /uae/ https://www.alokikastro.com/uae-united-arab-emirates/
Redirect 301 /usa/vashikaran-yantra.htm https://www.alokikastro.com/usa-united-states/vashikaran-yantra.htm
Redirect 301 /uae/numerology-astrologer.htm https://www.alokikastro.com/uae-united-arab-emirates/numerology-astrologer.htm
Redirect 301 /uk/nakshatra-dosh-puja.htm https://www.alokikastro.com/uk-united-kingdom/nakshatra-dosh-puja.htm
Redirect 301 /uae/astrology-services.htm https://www.alokikastro.com/uae-united-arab-emirates/astrology-services.htm
Redirect 301 /uae/navgrah-9-planets-puja.htm https://www.alokikastro.com/uae-united-arab-emirates/navgrah-9-planets-puja.htm
Redirect 301 /uk/vashikaran-specialist.htm https://www.alokikastro.com/uk-united-kingdom/vashikaran-specialist.htm
Redirect 301 /usa/k-p-astrology.htm https://www.alokikastro.com/usa-united-states/k-p-astrology.htm
Redirect 301 /uk/surya-puja.htm https://www.alokikastro.com/uk-united-kingdom/surya-puja.htm
Redirect 301 /uk/shanti-puja.htm https://www.alokikastro.com/uk-united-kingdom/shanti-puja.htm
Redirect 301 /uae/marriage-astrology.htm https://www.alokikastro.com/uae-united-arab-emirates/marriage-astrology.htm
Redirect 301 /usa/marriage-astrology.htm https://www.alokikastro.com/usa-united-states/marriage-astrology.htm
Redirect 301 /uae/palmistry-astrologer.htm https://www.alokikastro.com/uae-united-arab-emirates/palmistry-astrologer.htm
Redirect 301 /uk/love-marriage-astrology.htm https://www.alokikastro.com/uk-united-kingdom/love-marriage-astrology.htm
Redirect 301 /uae/love-astrology.htm https://www.alokikastro.com/uae-united-arab-emirates/love-astrology.htm
Redirect 301 /usa/vedic-astrology.htm https://www.alokikastro.com/usa-united-states/vedic-astrology.htm

Redirect 301 /scarborough/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /assam/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /seremban/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /riyadh/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /krakow/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /dhangadhi/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /thimphu/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /etawah/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /johannesburg/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /kashan/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /tanta/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /rome/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /butwal/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /curepipe/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /bhaktapur/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /wellington/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /pokhara/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /sibiu/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /newcastle/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /ranchi/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /amsterdam/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /glasgow/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /doha/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /nansana/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /naypyidaw/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /dukhan/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /sheffield/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /florence/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /chicago/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /christchurch/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /perth/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /triolet/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /liverpool/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /biratnagar/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /qatar/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /negombo/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /durban/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /jaunpur/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /yazd/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /ajman/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /myawaddy/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /casablanca/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /pithoragarh/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /brisbane/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /kathmandu/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /canberra/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /zarqa/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /winnipeg/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /sylhet/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /houston/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /mahboula/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /mississauga/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /khulna/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /ipoh/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /punakha/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /khajuraho/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /phoenix/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /kazan/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /vienna/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /mumbai/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /delhi/astrologer.htm https://www.alokikastro.com/astrologer.htm
Redirect 301 /tehri/astrologer.htm https://www.alokikastro.com/astrologer.htm

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 47.79.0.0/16
deny from 47.82.0.0/15
deny from 57.141.0.0/16

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php72” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
