Y T Nuke  
Results 1 to 4 of 4
Hi guys I would like to know the code to perform a 301 redirect on ...
  1. #1
    emilix123 is offline Junior Member
    Join Date
    Apr 2010
    Posts
    127
    Reputation
    10
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Redirect 301 Hosting Linux

    Hi guys I would like to know the code to perform a 301 redirect on my site to another site? I have a Hosting Linux

    Thanks

  2. #2
    paincake's Avatar
    paincake is offline Lieutenant
    Join Date
    Aug 2010
    Posts
    699
    Reputation
    387
    Thanks
    900
    Thanked 2,983 Times in 400 Posts

    Default Re: Redirect 301 Hosting Linux

    put this in index.php
    PHP Code:
    <?php
    header
    ('Location: http://www.example.com/');
    ?>
    Or put this in .htaccess file (this will redirect all urls):
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^([^.:]+\.)*oldsite\.com\.?(:[0-9]*)?$ [NC]
    RewriteRule ^(.*)$ http://newsite.com/$1 [R=301,L]
    Next time use google to find a solution
    Last edited by paincake; 12-28-2011 at 05:18 PM.

  3. #3
    emilix123 is offline Junior Member
    Join Date
    Apr 2010
    Posts
    127
    Reputation
    10
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Re: Redirect 301 Hosting Linux

    Thanks for the reply sorry but I must make a redirect from a subdomain (name.domain.com) to a external domain (site.com) the code in .htaccess file is the same?

    because don't work....

  4. #4
    emilix123 is offline Junior Member
    Join Date
    Apr 2010
    Posts
    127
    Reputation
    10
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Re: Redirect 301 Hosting Linux

    any ideas?

AdStract


Advertise on Black Hat World

Similar Threads

  1. User Agent Strings list for ScrapeBox
    By TZ2011 in forum Black Hat SEO
    Replies: 2
    Last Post: 01-08-2012, 06:18 PM
  2. 301 redirect or 302 redirect?
    By greggggg in forum Black Hat SEO
    Replies: 5
    Last Post: 07-12-2011, 12:13 AM
  3. PrStorm - IT WORKS!
    By HenryHavoc in forum Black Hat SEO Tools
    Replies: 457
    Last Post: 04-23-2011, 06:25 AM
  4. htacces 301 redirect help needed
    By Claudiu in forum Web Design
    Replies: 2
    Last Post: 03-31-2011, 05:14 PM
  5. Aged Domain, 301 Redirect, BHSeo Need Help
    By codBq in forum Black Hat SEO
    Replies: 7
    Last Post: 12-23-2010, 05:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76