• I have a few questions.

    1. I’m using WP 2.3.1, and I’d like to upgrade to the latest version. However, I’d also like to move my site from /blog/ to the root directory of my site. Should I update WP first or move it first?

    2. For moving the site, anything more I need to know besides https://codex.www.ads-software.com/Moving_WordPress#Moving_WordPress_Within_Your_Site?

    3. I’d like to have a static home page. I tried setting it to another page, but I lost my posts, as the page that I selected as my static homepage appeared both when I clicked on the name of the page AND when I clicked on home. And in the settings for the static homepage, I can select a page for the posts, but there is no option for Home, even though that is where all of the posts are now.

    I’d like to have a static homepage that is preferably named “Home” (although the instructions for setting up a static homepage said not to name the page “Home”, as it will conflict with the current homepage), and I’d like a page to be named blog that has all of my posts over the years. Is it possible to rename the Home page to something else?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    1. Whichever you want.
    2. Not really, just make sure you back up your files and database.
    3. You can name it home, blog, or whatever you want. “Home” is pretty common.

    Thread Starter LABachlr

    (@labachlr)

    I tried it both with and without a copy of the files in the new location. Both gave errors.

    When I tried changing the URL’s without a copy of the blog files in the new location, it tried to go to the following location: “https://www.mysite.com/wp-login.php?redirect_to=%2Fblog%2Fwp-admin%2Foptions.php”.

    After that, I could not get back into the blog. So, I logged into my database and in wp_options, I changed the “siteurl” and “home” values back to the original URL. I then went into the Pages section, clicked on Edit next to one of the pages, and then saved the page without changing it. All of the pages were accessible again.

    Since the above didn’t work, I put a copy of the blog files and folders in the new directory and tried changing the URL’s. Here is the error that I got:

    Fatal error: Call to undefined function: nocache_headers() in /home/user/public_html/wp-login.php on line 10

    I had to do the same thing as above to get the blog back up and running again.

    Could it be my .htaccess file?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    # END WordPress

    If not, what am I doing wrong? I’m following the instructions on the link I mentioned in my original post.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to move my site to root directory/Upgrade first?/Static homepage’ is closed to new replies.