Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter kaspara

    (@kaspara)

    Thanks, but I’ve tried it, twice, done all steps, and nothing seems to change?

    Then I can only assume you’re missing something. I’ve used this approach to move a site to the root domain many times without any problem.

    Thread Starter kaspara

    (@kaspara)

    I tried again, but I still get stuck at this point:

    7: Login to your site. It should still be https://example.com/wordpress/wp-admin/

    Where I’m not directed to my admin, but my fragmented blog, and this message:

    “404 Error: Not found

    The page you trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for ”

    It’s sounds as if you’ve moved your files. Hence the 404 error. Did you attempt to move the files previously?

    Thread Starter kaspara

    (@kaspara)

    Am I moving the files from point 4 to the wrong place? I’m assuming “the root directory” is the top folder, from which all the other folders open? Thats where I placed them..

    Thread Starter kaspara

    (@kaspara)

    No, I copy them. I accidentally moved one of them, and had to add it again from my downloaded wordpress folder, and then I started over.

    Thread Starter kaspara

    (@kaspara)

    Well, I havent made any other changes than that, besides that I had to add

    define(‘WP_HOME’,’https://mydomain.com/myblog’);
    define(‘WP_SITEURL’,’https://mydomain.com/myblog’);

    in my wp-config.php, so thats where I change the URL instead of in the general panel as described in 1,2 and 3 of the guide. If I remove the code, I cant enter admin or anything else, and I only added it because I thought by changing the URLs in the general panel would do what I’m trying to achieve, instead it became impossible to access wordpress.

    Other than that I’ve followed the guide stricktly.

    Thread Starter kaspara

    (@kaspara)

    I’ve now tried using the public_html folder instead, if perhaps that was the meant root(because this is the first time I’ve tried this stuff), but the exact same thing happened..

    Edit: Alright, I change the

    define(‘WP_HOME’,’https://mydomain.com/myblog’);
    define(‘WP_SITEURL’,’https://mydomain.com/myblog’);

    to

    define(‘WP_HOME’,’https://mydomain.com’);
    define(‘WP_SITEURL’,’https://mydomain.com’);

    Is that wrong?

    And by changing

    require(‘./wp-blog-header.php’);
    to
    require(‘./wordpress/wp-blog-header.php’);

    “using your directory name for the WordPress core files:”

    I dont quite know what they mean, english is not my first language, and I dont see where they mean I though place the directory name, but I’ve tried many variations, but I wish they worded it differently..

    The public_html folder is the root folder for your domain if it is your primary domain on your account. What happens when you change the site over and you visit your domain in a web browser? Does the site display?

    Hi Kaspara,

    I just changed my wordpress url on Mydomain heres how –

    1. Login to your account
    2. Click Hosting & Services
    3. Click Configure
    4. Click Web Applications
    5. Click Blogging and Content Management
    6. Click WordPress
    7. Select the domain you wish to edit
    8. Click Change Location
    9. Enter the new Location. If / is entered as the location, the blog will load by just by typing the domain name
    10. Click Submit

    Hope that helps you

    Thread Starter kaspara

    (@kaspara)

    Stupid of me not to think of the mydomain site.. I didnt mean that I use mydomain, so your advice doesnt help me in this case Colin- but thank you so much for trying.

    I use HostGator, and Tim thats exactly what my .com shows when I’ve done the changes. It shows a default getting started page, and my .com/myblog is all mixed up (but returns to normal when I turn the config links back). I’m getting tired of trying the same things over and over, and must be missing something really obvious since this seems like something thats usually pretty straightforward… But I’m doing exactly what the guide says..

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Alright, I change the

    define(‘WP_HOME’,’https://mydomain.com/myblog’);
    define(‘WP_SITEURL’,’https://mydomain.com/myblog’);

    to

    define(‘WP_HOME’,’https://mydomain.com’);
    define(‘WP_SITEURL’,’https://mydomain.com’);

    Is that wrong?

    Yes.

    Step 2 was “In the box for Site address (URL): change the address to the root directory’s URL. Example: https://example.com”

    So you should have this:

    define('WP_HOME','https://mydomain.com/myblog/');
    define('WP_SITEURL','https://mydomain.com/');

    See? WP_HOME is where the actual folder is. WP_SITEURL is how you want it to display.

    Also

    And by changing

    require(‘./wp-blog-header.php’);
    to
    require(‘./wordpress/wp-blog-header.php’);

    Should be require('./myblog/wp-blog-header.php'); (using your example).

    Make sure that’s ONLY changed in the COPY of the file in your / folder ??

    So you have TWO index.php’s, one in the main folder, and one in myblog. Do not edit the one in myblog.

    Thread Starter kaspara

    (@kaspara)

    Oh all of that made so much sense! Thank you SO much ??

    But, all that changed was that, although the blogs static page is now placed on the .com for the first time- its just as broken as it all was before when I changed the config?

    Also the admin leads me to a not found page.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The admin will remain domain.com/myblog/wp-admin

    Go in and re-save your permalinks ??

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Trying to change the location of wordpress to mydomain.com’ is closed to new replies.