• I’m trying to move the wordpress site to my root directory from a folder called “wordpress.” Before doing anything else, I changed the URL in General Settings I changed the WordPress URL and Site Address URL from cicministries.org/wordpress to cicministries.org. I then copied the files and pasted them into the public folder and uploaded it. Now the wordpress site is broken. I had a complete backup on my HD so I uploaded that but it still isn’t functioning properly. I want to restore the site to function correctly, and then move it to my root directory.
    https://www.cicministries.org/wordpress
    I don’t know how to troubleshoot.

Viewing 15 replies - 1 through 15 (of 16 total)
  • It best to move files in File Manager in Cpanel (if you have access to that) – by basically selecting all the wp files and moving them back to the /.
    You will also have to edit and re-uploaded the .htaccess file to the root directory, and get rid of any old index.htm files that are in the root directory.

    Thread Starter bettygott

    (@bettygott)

    I moved everything as you suggested. When I opened the .htaccess file there was nothing in it. What should be edited anyway? The site is working now, with the exception of one problem. When I move off the home page to another page, and then click “Home” it tries to take me to the old address. I don’t know where to change that. I checked the settings and everything is as it should be there. Please advise.

    The below should be in your .htaccess file.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    When it was in the other directory, rewrite base would be /otherdir/

    Thread Starter bettygott

    (@bettygott)

    I pasted the code just as you indicated. I also cleared my cache. I still cannot go back to home from another page using the home button. I looked again at the code in the .htaccess file. I thought perhaps I should’ve put in my URL, so I tried that.
    RewriteRule cicministries.org/index.php [L]
    Still not working correctly.

    The home page is actually the theme’s presentation page. Initially I wanted “Home” to appear in the navigation so I added a page. I think I have to change the URL there, but I don’t know how.

    https://www.cicministries.org

    OK … first up, change your permalinks to page/post name

    Go to Settings > Permalinks

    chose day and name, or, month and name. Save this.

    Now go to your menu.

    Appearance > menus

    and remove the home link.

    Go to View All pages at left, and add home again.

    That should sort it out!

    Actually, another question, what have you set your home page as under

    Settings > Reading

    ?

    Thread Starter bettygott

    (@bettygott)

    II changed the permalinks to month and name; saved.
    I went to the menu and removed the home link.
    When I went to all pages, a Home page still existed so I deleted it.
    I created a new Home page.
    Still not working correctly. When I click on it from the main navigation it takes me to a blank page, not to the presentation “home” page that I want.

    When I created the original home page it was working correctly until I moved the site from the “wordpress” folder to the root directory. After that, when I clicked on the link it was looking for the page in the “wordpress” folder.

    To answer your second question, in Settings > Reading I have my home page set to “Your latest posts” otherwise the presentation page doesn’t show up.

    Can you give me the link to the presentation page?

    OK, I think I see what you are doing.
    In Settings > reading, you need to choose your presentation page as the home page NOT your latest posts. There are no posts so nothing will show there.

    Delete that “Home” menu item.

    Click Links at the left (NOT pages), and add in your URL https://cicministries.org then put
    “Home”
    as the link text.
    Then click Add to menu.

    Thread Starter bettygott

    (@bettygott)

    I experimented around to see if I could figure it out and ended up messing things up. In settings > General (I think?) and for the URL I changed it to cicministries.org/index.php. That didn’t work and now I can’t even login. I should’ve waited for your reply. Do you know what file I would have to open to change it back? Or what I can do?

    Once I’m able to login I’ll go ahead and make your suggested changes.

    I think if you re-upload the .htaccess file you should be able to get back in!

    Thread Starter bettygott

    (@bettygott)

    I re-uploaded the .htaccess page. I get a login page but it’s not centered as usual.
    You can see: https://cicministries.org/wp-login.php

    Thread Starter bettygott

    (@bettygott)

    My .htaccess page looks exactly like the code you gave me earlier. Should I leave the rewrite rule like this?
    RewriteRule . /index.php [L]
    Or should I put the complete URL in before the /

    I don’t know about the login page, but don’t change the rewrite rule.

    The home page hasn’t been changed yet …

    Thread Starter bettygott

    (@bettygott)

    I uploaded a backup of the site. Now nothing appears in the window. Looking at the files in FileZilla they all appeared to be in the correct place. So then I uploaded the current version again, but I’m getting the same result.

    Do you have any idea what I can do?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘WordPress site not functioning correctly after trying to move to root directory.’ is closed to new replies.