1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

URGENT | Redirection question

Discussion in 'Google' started by zinghana, Feb 6, 2010.

  1. #1
    Hi all,

    This is the site i am referring to http://vb4style.com/

    I need someone to help me redirect my old urls to my new vBulletin installation.

    Please google: site:vb4style.com

    and if you have a few minutes to help i would GREATLY appreciate if someone could reply or PM me with the correct code to add to my .htaccess file, so that i do not get penalized.
    SEMrush
    A HUGE THANKS IN ADVANCED TO ANYONE WHO CAN TAKE THE TIME TO DO THIS FOR ME.

    Regards Darren
     
    zinghana, Feb 6, 2010 IP
    SEMrush
  2. bigu

    bigu Well-Known Member

    Messages:
    1,205
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    100
    #2
    bigu, Feb 6, 2010 IP
  3. zinghana

    zinghana Well-Known Member

    Messages:
    1,970
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    125
    #3
    yes some links are no longer current as i am now using vBulletin 4...

    I wish to redirect the old urls to my main page: http://vb4style.com as the structure is different ??

    Any help on this is as i said greatly appreciated !!

    Thanks
     
    zinghana, Feb 6, 2010 IP
  4. mam4q

    mam4q Member

    Messages:
    139
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #4
    I think the general rule you are looking for is:

    RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301,L]

    where domain.com is your old domain and
    domain2.com your new one.

    Good luck.
     
    mam4q, Feb 6, 2010 IP
  5. zinghana

    zinghana Well-Known Member

    Messages:
    1,970
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    125
    #5
    Thanks..... but... i am using the same domain... i scrapped my old WP installation and have now installed vBulletin 4... i just wish to redirect the old articles (only 3 or 4) to my main page vb4style.com

    Thanks again for your feedback... but i am still a little lost

    EXAMPLE: http://vb4style.com/vbulletin-4-styles (DEAD PAGE) i need this to redirect to my main page http://vb4style.com/

    I would assume this is easy however i have never dealt with redirects before..

    Cheers again... any advice on this would be great. Thanks
     
    zinghana, Feb 6, 2010 IP
  6. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,338
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #6
    If you want all the old URLs to redirect to homepage, you need to edit your htaccess file.
    Put the line anywhere in the file

    ErrorDocument 404 /index.php

    That'll do it
     
    Abhik, Feb 6, 2010 IP
    zinghana likes this.
  7. bigu

    bigu Well-Known Member

    Messages:
    1,205
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    100
    #7
    Create a notfound.html with this code:

    <script language=javascript>
    self.location.href='http://vb4style.com/';
    </script>
    Code (markup):
    Add this to .htaccess

    ErrorDocument 404 /notfound.html 
    Code (markup):
     
    bigu, Feb 6, 2010 IP
  8. zinghana

    zinghana Well-Known Member

    Messages:
    1,970
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    125
    #8
    Appreciate that mate :) working a charm... i only had a few articles saying my products were coming soon, now i can only hope i don't lose my serps

    Cheers again your a star :cool:
     
    zinghana, Feb 6, 2010 IP
    Abhik likes this.