.htaccess Generator
Apache .htaccess rules generate करें redirects और security के लिए।
# Generated by ToolHQ .htaccess Generator
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Force HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
# Enable Gzip compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css application/javascript
</IfModule>
# Browser caching
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
</IfModule>How to use .htaccess Generator
1
अपना Redirect Type चुनें
ToolHQ से permanent (301), temporary (302), या external redirects में से चुनें और अपने .htaccess rules generate करना शुरू करें
2
अपना Redirect URL दर्ज करें
उस URL को दर्ज करें जिससे आप redirect करना चाहते हैं और वह URL दर्ज करें जिसमें आप redirect करना चाहते हैं।
3
Security Rules जोड़ें
ToolHQ सहित विभिन्न सुरक्षा विकल्पों की एक श्रृंखला से चुनें, जिसमें password protection, IP blocking, और file type restrictions शामिल हैं।
4
Generate और Download करें
'Generate' बटन पर क्लिक करके अपने custom .htaccess rules बनाएं और उन्हें text file के रूप में download करें