URL Redirection kya hai?
URL Redirection kya hai?
URL Redirection ka matlab hota hai:
Ek URL se doosre URL par automatic bhejna.
Jab koi user ya search engine ek page open karein, to woh automatically kisi aur page par redirect ho jaye.
Simple Example:
Agar aap yeh URL open karte ho:www.example.com/old-page
Lekin yeh automatically open ho jaye:www.example.com/new-page
Isse kehte hain URL Redirection.
Redirection kyun kiya jata hai?
| Situation | 📋 Reason |
|---|---|
| Page delete kar diya gaya | To user ko new page pe bhejna hota hai |
| URL change ho gaya | Purane URL se traffic loss na ho |
| Domain change ho gaya | Purani site se nayi site pe le jana |
| SEO preserve karna | Link juice aur Google ranking bachaana |
Types of URL Redirection
| Type | 🔧 Use | 🔍 Search Engine Effect |
|---|---|---|
| 301 Redirect | Permanent redirect | SEO ranking transfer hoti hai ✅ |
| 302 Redirect | Temporary redirect | SEO ranking transfer nahi hoti ❌ |
| 307 Redirect | Temporary (HTTP 1.1) | Same as 302, modern browser use karta hai |
| Meta Refresh Redirect | Page ke andar redirect hota hai (slow) | SEO ke liye recommend nahi |
⚙️ Redirection kaise karte hain?
🔸 WordPress Plugin se:
-
Redirection Plugin (free)
-
Simple interface → Old URL + New URL daalna
🔸 .htaccess file se (Apache server):
🔸 JavaScript se:
🚨 Redirection ke benefits:
| ✅ Benefit | 🔍 Explanation |
|---|---|
| User experience better hoti hai | Page missing error nahi dikhta |
| SEO ranking loss nahi hoti | Link juice naya page le leta hai |
| Website structure clean rehti hai | Purane pages dead nahi hote |
❌ Redirection me dikkat kab hoti hai?
| ❌ Issue | 🔍 Effect |
|---|---|
| Broken redirect | User ko “Page Not Found” dikhega |
| Redirect loop | Page baar-baar reload hota rahega |
| Too many redirects | Browser error aayega |
📌 Real-life Example:
🔹 Aapki site ka purana page:
👉 www.mystore.com/shoes.html
🔹 Aapne URL badal diya:
👉 www.mystore.com/men/shoes
Ab agar koi purana link pe aaye, to use 301 redirect se new page pe bhejna chahiye.
.png)
Comments
Post a Comment