• Resolved Cre8tvGrl

    (@cre8tvgrl)


    Hello,

    I have an add-on domain which I’ve successfully setup with my hosting provider for a new site I’m building. The url works perfectly for the home page; however, after changing the ‘Site Address (URL)’, the pages I’ve created, as well as any new ones created after this change, don’t appear. Instead I receive the following error message:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Would you know how I could fix this? I don’t want to show the ‘actual’ location of these pages in that they’re ‘technically’ housed under the domain name that is the primary site for my hosting package – ie. I would like to show https://www.example.com/about-us and not show https://www.previous-site.com/example/about-us.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Cre8tvGrl,

    I think the simple solution is to just make sure you update the permalink settings in wordpress settings.

    Another issue you’ll face when movin a site like this is some information in the database won’t be transferred correctly due to serialization.

    I’d suggestion using a plugin like https://www.ads-software.com/plugins/wp-migrate-db/
    To move a database between wordpress installs.

    Thread Starter Cre8tvGrl

    (@cre8tvgrl)

    Hi Joelwarren,

    Thanks for your response!

    This is a brand new site so I’ve only built two pages so far. I thought that the issue occurred due to making this change after the fact, so I created a new page to test this theory; however this issue is still taking place on the new page…I’ll look into updating the permalinks, but I believe I did this step already. I’ll try it again though just in case.

    Thread Starter Cre8tvGrl

    (@cre8tvgrl)

    I was wondering if I needed to insert code into the .htaccess file? I found an article on directing a domain to a subfolder, but that’s in the event that the root domain is no longer being referenced – ie. A 2014 website is now under the 2014 folder, which someone wants to show instead of the 2013 website which resides in the root. What I want to do is keep the root url (as it’s another website) and have this website work purely within the subfolder with it’s own url.

    I’m a little bit lost. Example urls would be helpful.

    You shouldn’t need to edit the .htaccess folder and managing the fact that the sudfolder is sitting on it’s own domain is managed but your cpanel with addon domains etc.

    The only issue I can think that’s happen is that you’ve installed the new WP via the subfolder, i.e. https://example.com/2014, then setup the addon domain. i.e. https://2014.com/ to point to that folder.

    If you haven’t gotten to far, it might be worth reinstalling WP via the new domain.

    Thread Starter Cre8tvGrl

    (@cre8tvgrl)

    Oh that’s exactly what I did..I installed the WP site within the subfolder ‘canvm’, and the addon domain points to that folder which is https://www.canvm.org. If you visit that site you can see that the home page works as that url but ‘about us’, etc. shows the root domain which is another site altogether and shouldn’t be connected to this.

    I’m a bit confused by what you mean with reinstalling WP via the new domain though..the online instructions I found said to install it in the subdirectory…no? Since its an addon domain, I don’t have a hosting package that is based off of it. I was hoping to save $$ and use my existing hosting package.

    Ok I see what’s wrong. You’ve changed the site URL and not updated the values in the database (WP stores absolute urls in the database, which in your case are referencing the old site).

    Have a look at this for instructions: https://codex.www.ads-software.com/Moving_WordPress#Changing_Your_Domain_Name_and_URLs

    As above you might want to check out the plugin migrate db to help you with this.

    Thread Starter Cre8tvGrl

    (@cre8tvgrl)

    Ok I finally fixed it woohoo!! I removed my Addon domain, then re-added it in my hosts cPanel (just in case). Prior to doing any ‘possible damage’, I backed up the entire site using the Duplicator plugin. I then ran the Duplicator’s install.php file it created under my new url – ie. https://www.canvm.org/installer.php. It found every instance of the old url that included the root path I’ll call it, and replaced it with the new url. Now every page on my site works beautifully! I’m so incredibly relieved. Thank you so much for your help!

    Thread Starter Cre8tvGrl

    (@cre8tvgrl)

    Sorry, forgot to click on ‘topic is resolved’

    Awesome, good to hear!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to have pages viewable after changing site address URL’ is closed to new replies.