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.

Changing all URLs.

Discussion in 'Forum Management' started by Jerlene.net, Sep 14, 2007.

  1. #1
    I have a forum - domain.com
    I want to change every single URL(domain.com/index, domain.com/newthread, etc.) to website.com

    How do I do this?
     
    Jerlene.net, Sep 14, 2007 IP
  2. NoobieDoobieDo

    NoobieDoobieDo Peon

    Messages:
    1,456
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you explain more please ? Are you trying to re-direct to a different domain ? Chances are there is a htaccess hack.
     
    NoobieDoobieDo, Sep 14, 2007 IP
  3. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    360
    #3
    Yah, I want to redirect it to another domain but I want all the links to change as well.
     
    Jerlene.net, Sep 14, 2007 IP
  4. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #4
    You want to move the complete forum script and db to another domain?
     
    login, Sep 14, 2007 IP
  5. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    360
    #5
    I'm not sure. I just want all the URLs to change from domain.com to website.com
     
    Jerlene.net, Sep 14, 2007 IP
  6. ForgottenCreature

    ForgottenCreature Notable Member

    Messages:
    7,443
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    260
    #6
    Why not just 301 redirect the old domain?
     
    ForgottenCreature, Sep 14, 2007 IP
  7. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    360
    #7
    Ok, how do you do that?
     
    Jerlene.net, Sep 14, 2007 IP
  8. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #8
    I still dont understand what you want to do. Are you throwing away the old domain? Are you installing the script and the database on the new domain?
     
    login, Sep 14, 2007 IP
  9. ForgottenCreature

    ForgottenCreature Notable Member

    Messages:
    7,443
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    260
    #9
    Let me find it.

    RewriteEngine on

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


    All that should go in .htaccess on an apache server.

    Domain.com = old domain
    New domain = new domain
     
    ForgottenCreature, Sep 14, 2007 IP
    usasportstraining likes this.
  10. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    360
    #10
    Thanks. Works great for redirecting but do the URLs change?
     
    Jerlene.net, Sep 14, 2007 IP
  11. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    360
    #11
    Ok I did that and as I expected, it only redirects.

    Can anyone actually help me do what I'm asking?

    I don't want a simple redirection, I want to change every URL in the site from "domain.com" to "website.com".

    More clarification:

    I don't just want website.com to go to domain.com when I type website.com into my address bar. I want every single URL on the site(forum) to switch from domain.com to website.com

    Even More Clarification:

    http://www.domain.com/forumdisplay.php?f=1 >> http://www.website.com/forumdisplay.php?f=1

    http://www.domain.com/member.php?u=1 >> http://www.website.com/member.php?u=1
     
    Jerlene.net, Sep 17, 2007 IP
  12. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #12
    Al right.
    You want to abandon domain.com and start to use website.com instead.
    In short, what you have to do is to install the forum script on the new domain, then let the forum call the database from the old domain.
     
    login, Sep 17, 2007 IP
  13. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    360
    #13
    Is that automatic or do I need to do something?
     
    Jerlene.net, Sep 17, 2007 IP
  14. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #14
    login, Sep 17, 2007 IP
  15. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    360
    #15
    No. It's hosted with another company.
     
    Jerlene.net, Sep 17, 2007 IP
  16. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #16
    Then you have to export your database and then import it to the new server. Try to search google for "move site" "move forum" "move database" or something like that.
     
    login, Sep 17, 2007 IP
  17. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #17
    i think you mean that some forum posts contain urls to other posts in the same forum.
    if so, an sql query may make those changes for you.
     
    sawz, Sep 17, 2007 IP
  18. ForgottenCreature

    ForgottenCreature Notable Member

    Messages:
    7,443
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    260
    #18
    Have you tried to PM Nintendo and ask him about this? He's a pretty good expert with .htaccess
     
    ForgottenCreature, Sep 17, 2007 IP
  19. Jerlene.net

    Jerlene.net Prominent Member

    Messages:
    11,975
    Likes Received:
    463
    Best Answers:
    1
    Trophy Points:
    360
    #19
    No, that's not what I mean.

    Anyway, I'll try login's thing.
     
    Jerlene.net, Sep 17, 2007 IP
  20. Dollar

    Dollar Active Member

    Messages:
    2,598
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    90
    #20
    I'm not sure but isn't there option in the admin panel to change you url? lol
    Like even wordpress has this in the admin section. Only thing is if you do a typo or something then your screwed. and you'll have to edit the URL table DB in mysql with phpmyadmin (if your lucky)
     
    Dollar, Sep 17, 2007 IP