sabse pahle to about php language ke bare me aap jante hi honge php kya hai kaise work karta hai iski google par bahut si post avialable hai but aaj me aapko PHP se kisi bhi blog aur websites ko kaise ridirect karte hai is topic par information yaha is post me duga basic php code se aaj Php Se web Page Ko Redirect Kaise Kare Complete Guide ke liye basic knowledge of php language ko kuch code se aashani se kisi dusre page  par run karwa sakte hai best website to learn php ke bare me maine post hogi so wait kare

Php Se web Page Ko Redirect Kaise Kare Complete Guide

agar aap ek webmaster hai to apke sath bhi aisa kahi baar hua hoga apki kisi file ka name aisa ho jise apka target complete nahi hota ho ya apko file tree ko rename karne ki jarurat ho to apki site ko php ko edit karke kisi dusri site me koi bhi link change karna jyada muskil hai

aap page ki location change karte time seach engine bahut si baar users ko galt address send kar deta hai jiski wajah apni post ya page ka Seo puri tarh se reset ho jata hai is problem ka soluction nikal ne ke liye aur better seo banane ke liye redirections ka istemal kare jise apni sabhi files ko move kiya ja sakta hai to baat kate hai Php Se web Page Ko Redirect Kaise Kare Complete Guide

 

Php Se web Page Ko Redirect Kaise Kare Complete Guide

 

Redirect Header

 

simple redirections

jab visitor kisi dusre wep page par redirect karne ke liye apko is coding ka istemal kare jisko Especially useful in the conditional loop se create kiya gaya hai

aise me mypage.php us page ka address hai jis par aap visitor ko redirect karna chahte hai ye address pura ho sakta hai ,aur ye bhi ho sakta hai ki iske format me parameters ka istemal kiya gaya ho mypage.php?param1=val1¶m2=val2)

Relative / Absolute Path

jab apko Relative / Absolute Path ko apne wep page se clear karna ho to apke liye ye option best hoga ki aap server ,(document_port) ke root ko absolute paths ko choice kare uar aage diye gaye formate ko choice kare

iske baad bhi ek option available hota hai jise any time kisi durse server ko target page me full URL add karna chaiye jaise ex-

 

HTTP header.

HTTP ki full form Hypertext Transfer Protocol hoti hai ise HTTP header ko kisi contant se pahle send kiya jana chaiye iska matlab ye hua ki koi bhi Character Header se pahle yaha tak ki empty space se pahle send nahi kiya jana chaiye

agar aap iske bare me full jankari pana chahte hai to yaha click kare

Temporary / Permenan Redirection

Temporary / Permenan Redirection kya hai Temporary / Permenan Redirection php se kaise istemal kare Default roop se uper mojud redirections ka parkar temporary hai iska matlab ye hai ki google search engine indexing ke time redirection ko laker active show nahi hota hai

agar aap search engine ko ye notice karna chahte hai ki wo page ke jagah kisi dusri jagah par laye jata hai to aage diye hui coding ko istemal kar sakte hai

agar aap iska example karke show karna chahte hai to niche diye hui coding ka istemal kare

jaisi hi aap uper di gayi link par click karte hai to aap is page par apne aap redirect ho jate hai iske alawa ye bhi fix redirections hai status:301 fixing roop se move kiya gaya hai isiliye jab google me frist URL type karte hai aap apne aap kisi dusre redirection page per redirect kar diya jata hai

PHP code explanation

us header () Located PHP code ki Interpret server karge ise redirection me show hone wale visitor bataye gaye address par move ho jata hai jaydatar Most cases me iska matlab ye hota hai ki apke server ka loafing speed kar kam karne ke liye Exit() function ke header() ko folow karne karne ke liye iss mathed ki jarurt hoti hai

dosto is Php Se web Page Ko Redirect Kaise Kare Complete Guide se apke bahut se dout clear ho gaye hoge agar apke really ye post pasand aaye to social share sites par share kare

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.