इस टूल में कोई समस्या है?
«.htaccess रीडायरेक्ट जेनरेटर ऑनलाइन» के बारे में
यह टूल Apache सर्वर के लिए .htaccess रीडायरेक्ट नियम बनाता है।
साइट माइग्रेशन के दौरान रीडायरेक्ट आवश्यक हैं।
टूल डिफ़ॉल्ट रूप से 301 (स्थायी) रीडायरेक्ट उत्पन्न करता है।
इस टूल का उपयोग कैसे करें
How to write an Apache .htaccess redirect rule
Source and destination
"Source path" is the URL path Apache should match (e.g. `/old-page` or `/blog/(.*)`). "Destination URL" is where the visitor goes (absolute URL recommended: `https://example.com/new-page`).
Status code
"Status code" picks `301` (Moved Permanently — for permanent URL changes, search engines update their index) or `302` (Found — temporary; the old URL stays canonical). For SEO-friendly migrations always use 301.
Press Run
Result returns a single `htaccess` field — a `Redirect <code> <source> <destination>` line ready to paste into `.htaccess` at your site root. Add `RewriteEngine On` above your block if it's not already there for other rules.
Test before going live
Use `curl -I https://example.com/old-page` to confirm the redirect returns the expected `Location:` header. A common pitfall is matching with a trailing slash on one side but not the other — Apache treats `/foo` and `/foo/` differently.