WordPress.org

Forums

Yet another URL change nooby (5 posts)

  1. Piestar
    Member
    Posted 1 year ago #

    Hi guys,

    I've been searching for days on this one and NOTHING seems to be working. I'm hoping someone will take my circumstances in and give me a solid solution - I can't be the only one who's been here.

    My set-up:
    I am hosted on 123-reg, I have a wordpress site installed in a sub directory. So my 'WordPress Address' URL is http://mainsite.com/sub-directory

    IS THIS THE CORRECT WAY TO HOST A WORDPRESS SITE? (FROM A SUB-DIRECTORY) AND AM I DOING IT RIGHT?

    The Problem:
    I want to be able to change the 'Site Address' URL to a domain name that I own. I have the domain that I own forwarding to http://mainsite.com/subdirectory and it forwards just fine.
    The problem comes when I try to change the 'Site Address' to my new domain name.
    When I do this, the url bar does not change to my new domain, I just get a 404 error page from my theme.

    I WANT TO BE ABLE TO HAVE MY WORDPRESS SITE STORED IN ITS CURRENT LOCATION, BUT I WANT THE URL TO BE THE NEW DOMAIN NAME I BOUGHT (ALL ON 123-REG).

    Please don't just link me to the wordpress codex, I have tried doing this from the dashboard as well as editing files manually via FTP - I always get either my themes 404 error with no worse, that connection problem error.

  2. Ravi
    Member
    Posted 1 year ago #

    I am not sure if you can host WordPress files in one domain and display it in another domain.

    Why don't you migrate the files to the new domain?

    Having WordPress files in a sub directory is not an issue. But, if your root directory is free, you can have it as your site URL for better SEO and usability.

  3. Piestar
    Member
    Posted 1 year ago #

    I am not sure if you can host WordPress files in one domain and display it in another domain.

    Why don't you migrate the files to the new domain?

    Having WordPress files in a sub directory is not an issue. But, if your root directory is free, you can have it as your site URL for better SEO and usability.

    Thanks for the reply Ravi

    My hosting package is for 'unlimited sites' but 123-reg suggest that the best way to host multiple sites is to use directories off of my root directory... Is this true or is there another way?

    The Domain name I bought is on 123-reg (the same place as my hosting package) - where am I going wrong?

  4. Andrew Tegenkamp
    Member
    Posted 1 year ago #

    Ok, so your 'WordPress Address' http://mainsite.com/sub-directory and I assume your 'Site Address' is the same.

    Now you want it to be http://newsite.com, correct?

    The first thing you will need to do is make sure newsite.com is pointing to the right folder. With most unlimited site hosting plans each domain can point to a different folder. There should be a webhosting control panel you can use to login and check where mainsite and newsite are looking. If newsite is looking at a folder that does not exist on your account, then you will alway get a 404 when you stop redirecting. So get in your control panel and make sure that is pointing to the wordpress folder first, and then change your 'WordPress Address' and 'Site Address' URLs.

    You asked about using directories off your root directory and organizing domains. You can usually organize this however you want. My default web folder for my main domain is /public_html which is pretty starndard so I use that for my main site and then I created a /public_domains folder next to public_Html for my other domains so I have /public_html/ hosting mainsite.com and then /public_domains/site1.com to host site1.com and /public_domains/newsite.com hosting newsite.com ad so on for new domains. You could do it this way if you wanted or just setup new folders right on the root or in subdirectories of your main site. As subdirectories it may get confusing if you or your visitors ever go to mainsite.com/newsite and get redirected to newsite.com. That is why it is considered better to create new folders for each domain. It also helps if you also need to give FTP access or anything else to just one domain if they are not all grouped together.

    Let me know how that goes and we'll go from there!

  5. Ravi
    Member
    Posted 1 year ago #

    You need to host the new domain name as an add-on domain in your existing host.

    Please see

    http://www.123-reg.co.uk/support/answers/cPanel/Hosting/how-can-i-create-addon-domains-on-my-123-reg-vps-3275/

    for help.

Topic Closed

This topic has been closed to new replies.

About this Topic