Search engine friendly website redirecting using php.


If you are a webmaster the you might have already known , how important is search engine ranking for your websites.
But most sites are under estimated by search engines due to small mistakes of webmasters. Solution to one of such mistakes is here.
There is no lost in redirecting a webpage into another. But they redirect a webpage into another very harshly.

One of the such mistakes usually webmaster makes is: they redirects an old webpage or some unused webpage in to another.

And thus their website will be underestimated and under ranked by search engines.

Hers is a perfect way for redirecting your webpages into another without hampering your rank at search engine.

Just use this code to redirect your webpages and you are away from one of the silly mistakes webmasters do.


Code:
 

<?php
header(”HTTP/1.1 301 Moved Permanently”);
header(”Location: http://www.yoursite.com/newpage.html”);
exit();

?>



Popular Searches:



 

About the author

More posts by admin | Visit the site of admin

 

12 Comments

  1. subash says:

    Looking forward for your reply and comments.

  2. Good one. keep on posting more about website desgine

  3. Polprav says:

    Hello from Russia!
    Can I quote a post in your blog with the link to you?

  4. subash says:

    Hello to you too polprav.
    Thanks for visiting my blog.
    And yes you may quote any post in my blog.
    But a vissible link to my site is must.

  5. Joseph9560 says:

    You mean to add that one more header you provided in addition to old single header style or you mean to use header style instead of some other technique.

  6. subash says:

    I mean tyo use this code in header. And redirect your page in body part.

  7. nnepali says:

    cool.. I have always used javascript to redirect .. I guess this works better with search engines ..

  8. subash says:

    Ya ,
    This shows a “page permanently moved” http status to search engines so behaves better with search engines.

  9. You made some good points there. I did a search on the topic and found most people agree with what you said.

  10. subash says:

    thanks for your comment.

  11. luzan says:

    subash, you have done great job man…….

  12. subash says:

    Thanks for your comment luzan.

Leave a Comment

 

You must be logged in to post a comment.