Forums

[resolved] [closed] Trying to change website URL... (15 posts)

  1. variedcelluloid
    Member
    Posted 2 years ago #

    Hi there, I've been wrestling with this all day and have come to no conclusion.

    Currently I host a secondary website on my hosting account (through godaddy), which is located in a separate folder like so:
    http://www.website1.com/website2/

    Well, my friend purchased a URL for website2 and although we can point his new URL to the website - all of the internal wordpress pages show up through my original URL still.

    So, today I've been digging up queries in order to change all of the internal database links in order to replace my 'oldurl' with the 'newurl'.

    Unfortunately after I make all of the adjustments I get that same old error where the front page shows up without any CSS additions and WP-ADMIN simply places me in a loop where it asks for login information and then reloads the page never allowing me to get past this point.

    I have quit trying at this point and I'm hoping someone out there can help point me in the direction of what I am missing. Here are the queries I last tried with the actual URL's I am trying to change:

    UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://www.variedcelluloid.net/vcinema', 'http://www.vcinemashow.com');
    UPDATE wp_posts SET guid = REPLACE(guid, 'http://www.variedcelluloid.net/vcinema', 'http://www.vcinemashow.com');
    UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'http://www.variedcelluloid.net/vcinema', 'http://www.vcinemashow.com');
    UPDATE wp_options SET option_value = REPLACE(option_value, 'http://www.variedcelluloid.net/vcinema', 'http://www.vcinemashow.com');
    UPDATE wp_links SET link_image = REPLACE(link_image, 'http://www.variedcelluloid.net/vcinema', 'http://www.vcinemashow.com');
    UPDATE wp_users SET user_email = REPLACE(user_email, 'http://www.variedcelluloid.net/vcinema', 'http://www.vcinemashow.com');

    Does anyone know what the problem may be? Is this even possible or have I simply misread?

  2. gixxer188
    Member
    Posted 2 years ago #

    If you created the directory prior to adding the add-on domain to your host the pointers won't work correctly as you're finding out. Your Zone File Records are setup correctly because the order in which you did things. Check the CNAME in your DNS settings.

  3. gixxer188
    Member
    Posted 2 years ago #

    Sorry that should have read "setup incorrectly". And you should check the CNAME in the DNS settings on your web host, not at godaddy

  4. variedcelluloid
    Member
    Posted 2 years ago #

    I did create the directory prior to adding on the secondary domain, yes.

    I don't see anything listed under CNAME for this new URL actually. Will adding a CNAME provide trailing links with the new URL?

    As you can see http://www.vcinemashow.com (the new URL) already points to the correct section of my host, but when you copy links or check images it leads to the URL based off of my website: http://www.variedcelluloid.net/vcinema

    The CNAME options have me a little confused to be honest. For Alias Name I would simply add "www" and for Points to Host Name I would just add: "www.vcinemashow.com"? Is that how it works?

    The site is hosted at godaddy as well, BTW.

  5. gixxer188
    Member
    Posted 2 years ago #

    That's what I'm saying, it was done backwards. You should add the new domain as an add-on domain to your web host first which will create the directory on the server. Then install WP into that directory.

  6. variedcelluloid
    Member
    Posted 2 years ago #

    Ahh, so do you know of any way for me to remedy this? Would backing up wordpress and then re-installing/importing the site do anything or would it just keep all of that previous information?

  7. gixxer188
    Member
    Posted 2 years ago #

    If you remove the domain as an add-on from your web host then re-add it and let it create the directly called "vcinemashow". Then you can reintall WP in that directory with a new database. Then just copy your theme directory from the wp-content/themes directory of the old site into the same directory on the new site and teh same for your plug-ins. You'll have to go through the General set up of WP again but you won't have to recreate your theme.

  8. variedcelluloid
    Member
    Posted 2 years ago #

    Hmm, as far as adding the "vcinemashow.com" domain as an add-on, who would handle that? I have access to the hosting account as well as my own variedcelluloid URL but my friend has access to the vcinemashow.com URL information.

    We added that URL a couple of months back and my memory is a bit fuzzy on who handled what. I do know that in my godaddy hosting account I have a domain manager where I added "vcinemashow.com" and it apparently points to the "vcinema" directory. If I were to create another entry here that pointed the "vcinemashow.com" domain to another folder called "/vcinemashow" - would that do the trick and create the folder?

  9. variedcelluloid
    Member
    Posted 2 years ago #

    Oh and with the fresh install, would I be able to import my old posts? I imagine that would be no conflict with that, would there?

    Thanks for all of your help, BTW, it is much appreciated!

  10. gixxer188
    Member
    Posted 2 years ago #

    First I would rename the directory on the server, Then in Godaddy I would remove the domain completely. And then add it back in like you were doing it for the first time and let it create a new directory. Then reinstall WP.

  11. variedcelluloid
    Member
    Posted 2 years ago #

    Okay, so I finally got around to trying this and still no luck. Here's what I did:

    Within my own Godaddy webhosting account, I went to the Domain Management section. Within there I changed the vcinemashow.com domain section to point to a folder that did not exist at the time, called "vcinemashow". Well, Domain Management then created the subfolder for me.

    Then, I got the login information for my friends domain account on godaddy and I pointed it to variedcelluloid.net/vcinemashow

    I then uploaded a new copy of wordpress and created a new database for a fresh WP install.

    I logged in via the vcinemashow.com/wp-admin URL and ran through the install.

    Now, I'm stuck in the exact same position. Every link still reads as variedcelluloid.net/vcinemashow

    SO, did I do anything wrong? And is there anything I can do to use this other URL and have it point to my webhost?

  12. variedcelluloid
    Member
    Posted 2 years ago #

    Does anyone at least know any name for what I am trying to do so that I can google search more acurately?

    Essentially, I have this URL that has been purchased and I want it to point to my subdirectory and I want the internal links to point to this new URL.

    So, if the old URL was variedcelluloid.net/vcinemashow/page?=1.php (or whatever), I want the new URL to read: vcinemashow.com/page?=1.php

    It's beginning to feel rather impossible at this point, but maybe if I at least had something new to search I could come up with some different ideas.

    I've read up on mod_rewrite but I don't think that holds the key for what I want. I've tried changing the database a billion times and changing siteurl/home doesn't do it.

    I'd still like to know more about cnames and such, but I'm not sure if that holds the secret and if it does I'd like to at least know of a good tutorial to look into.

    Once again, any help is appreciated.

  13. Tara
    Member
    Posted 2 years ago #

    Documentation: Changing The Site URL

  14. variedcelluloid
    Member
    Posted 2 years ago #

    Hasn't worked for me. Believe me, I've visited that page many times. The first post details the many mysql queries I have tried with no success.

  15. James
    Happiness Engineer
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic