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.

Redirect help

Discussion in 'Site & Server Administration' started by Dale2004, Mar 5, 2014.

  1. #1
    Hi,

    any help would be appreciated.

    Bit of background:

    I have two websites:
    domain.com - with wordpress multisite installed
    domain.com/blog - with wordpress installed (not multisite)

    What's the best way to redirect the domain.com to the domain.com/blog

    I want a temporary (302) redirect as i will be using domain.com in the future although want all traffic to go from domain.com to domain.com/blog

    I'm guessing something to do with the mod_rewrite or .htaccess file but my coding is limited.
     
    Dale2004, Mar 5, 2014 IP
  2. TIEro

    TIEro Active Member

    Messages:
    741
    Likes Received:
    177
    Best Answers:
    5
    Trophy Points:
    70
    #2
    TIEro, Mar 5, 2014 IP
  3. Dale2004

    Dale2004 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Thanks!

    I've managed to redirect the home page (domain.com) to the blog (domain.com/blog)
    There are still some pages that on the domain.com that i want to be able to access however without being forwarded to domain.com/blog

    How would i write this rule?
     
    Dale2004, Mar 5, 2014 IP
  4. HassanKhalid

    HassanKhalid Active Member

    Messages:
    158
    Likes Received:
    6
    Best Answers:
    4
    Trophy Points:
    90
    #4
    HassanKhalid, Mar 5, 2014 IP
  5. TIEro

    TIEro Active Member

    Messages:
    741
    Likes Received:
    177
    Best Answers:
    5
    Trophy Points:
    70
    #5
    That's going to be a lot more complicated and far beyond my pathetic understanding of .htaccess redirect rules. Someone on Stackoverflow would almost certainly be able to help.

    Or you could just move them into the /blog subdirectory and move them back later. :)
     
    TIEro, Mar 6, 2014 IP
  6. Dale2004

    Dale2004 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #6
    Thanks! I'll check out stackoverflow
     
    Dale2004, Mar 6, 2014 IP