
# Enable Rewrite Engine
RewriteEngine On

# Redirect all requests to index.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.html [L]

# Prevent directory listing
# Options -Indexes → Stops visitors from seeing a list of files if no index file exists.
Options -Indexes

# Redirect old page to new page
# Redirect → Sends anyone visiting /oldpage.html to /newpage.html.
Redirect /oldpage.html /newpage.html

# Custom 404 error page
# ErrorDocument 404 → Shows your custom notfound.html page when someone hits a broken link.
ErrorDocument 404 /notfound.html

# Block a specific IP address
# IP blocking section → Denies access to one IP while allowing everyone else.
<Limit GET POST>
    order allow,deny
    deny from 123.123.123.123
    allow from all
</Limit>





