Help me to 302 redirect Please

Discussion in 'Search Engine Optimization' started by Vebtools, Jul 1, 2009.

  1. #1
    I guys!

    i need your help. I want to remove my website section www.pakistans.com/mobile and want to permanent redirect to www.nokialoverz.com

    Plz guide me step by step how can i redirect through 302. so i can not lose my SEO

    Thanks in advance
     
    Vebtools, Jul 1, 2009 IP
  2. mioot

    mioot Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If your host is linux then just create a file as .htaccess and then upload it to pakistans.com/mobile/ with the following content.

    Redirect 302 / new url
     
    mioot, Jul 1, 2009 IP
  3. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #3
    302 is Termporarily Moved... 302 WILL make you lose credit for your links... You need to 301 redirect to tell the search engines that the pages have Permanently Moved so they will give the new URLs credit for the inbound links to the old URLs.

    The most important thing is to 301 redirect each old URL to the equivalent new URL whose content most closely resembles the content found at the old URL. That is so the link text of inbound links to the old URL will be applicable to the new one.

    If you're hosted on an Apache web server then you likely have lots of utilities at your disposal to accomplish this. The most popular, well-known is named Mod Rewrite. As the previous poster said, you create .htaccess files with regular expression pattern matching and rewriting rules in it to tell Mod Rewrite which requests should be redirected to where...

    For example, if you the page names and web structure on the new site is the same (you didn't change any page names or folder names) and you simply want to move http://www.pakistans.com/mobile/* to http://www.nokialoverz.com/ then in the /mobile folder of the old web create a text file called .htaccess with something like the following:

    This should match on anything that appears after /mobile in the old URLs and append it to the new domain.
     
    Canonical, Jul 1, 2009 IP
  4. pubdomainshost.com

    pubdomainshost.com Peon

    Messages:
    1,277
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #4
    And if you have static IP you may achieve the result by adding an A record to your DNS
     
    pubdomainshost.com, Jul 1, 2009 IP
  5. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #5
    from the last line of yours..

    if i did like you said, is it mean that if some one open www.pakistans.com/mobile/themes/etc then he will redirect to nokialoverz?
     
    Vebtools, Jul 1, 2009 IP
  6. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #6
    Canonical, Jul 1, 2009 IP
  7. dhaarvi

    dhaarvi Peon

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    How I can set 301 redirect for my blog . Please help me friends...


    Thanks,

    Dhaarvi
     
    dhaarvi, Jul 1, 2009 IP
  8. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #8
    Vebtools, Jul 1, 2009 IP
  9. tommseo

    tommseo Peon

    Messages:
    285
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Not possible in blogspot blogs, unless you have your own domain name and hosting with you.
     
    tommseo, Jul 2, 2009 IP
  10. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #10
    Vebtools, Jul 2, 2009 IP
  11. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #11
    Now let me know for how many days i have to used redirect file?
     
    Vebtools, Jul 2, 2009 IP
  12. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #12
    Once you put the 301 redirects in place, they need to remain in place forever... You will have to continue to host the old website, keep the old domain registered, and leave the redirects in place for as long as you want the new site to benefit from the old site's inbound links...

    If you later remove the redirects then when the search engines recrawl those inbound links to the old URLs, they will begin seeing the old site's pages again (instead of the 301 redirects), index the old URLs, and transfer credit for the old URLs' inbound links back to the old URLs. So your new site will no longer get credit for those links to the old site. And your old site will get indexed again.

    If you simply shutdown your old site in the future (stop hosting it) then when the search engines recrawl those inbound links to the old URLs, they will begin seen 404 Not Found errors when they request an old URL rather than a 301... Eventually, after several crawls with 404 results the new pages will lose credit for the inbound links to your old URLs and any SEO benefit they might have provided.
     
    Canonical, Jul 2, 2009 IP
  13. Canonical

    Canonical Well-Known Member

    Messages:
    2,223
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    110
    #13

    Anything is possible w/ Mod Rewrite. If all of your URL structures have changed and there are no patterns the redirects can use (for example, pakistans.com/mobile/etc/somepage.html is moved to nokialoverz.com/somenewfolder/somenewpagename.html) then you have 2 choices:

    1) The best option is to code one-for-one redirects for every old URL pointing to the equivalent new URL whose content most closely represents the content of the page at the old URL. You do this so the link text of the link to the old URL will be applicable to the new page.

    2) The last resort worst option is to simply redirect ALL old URLs to the the home page of the new site. You can do this simply by placing a .htaccess file in the old pakistans.com/mobile folder like:

     
    Canonical, Jul 2, 2009 IP
  14. Vebtools

    Vebtools Well-Known Member

    Messages:
    2,619
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    145
    #14
    the code you mentions not working so i am using this one

    redirectMatch 301 ^(.*)$ http://www.nokialoverz.com
    redirectMatch permanent ^(.*)$ http://www.nokialoverz.com
    Code (markup):
    working fine :D

    BTW thanks for help.. i am lucky to find you here :)
     
    Vebtools, Jul 11, 2009 IP
  15. eXe

    eXe Notable Member

    Messages:
    4,643
    Likes Received:
    248
    Best Answers:
    0
    Trophy Points:
    285
    #15
    You want 301 not 302. If you don't have access to htaccess you can put this in an index.php file:

    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.new-url.com" );
    ?>
    Code (markup):
     
    eXe, Jul 11, 2009 IP
  16. vinnu

    vinnu Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    you should use 301 redirection because it's permanent redirection and search engine like this..
     
    vinnu, Jul 13, 2009 IP