Skip to content

Anyone know how to switch from main website to new WordPress one in a subfolder?

Featured Replies

I've recently been tasked with putting together a new website (non-profit) to replace a rather aging one that's already in place. I've created the new one using WordPress (just static pages...nothing bloggy going on) but as the old website has been live whilst I was doing this, I created it in a subfolder on the server (public_html/wordpress) - so the old site is accessed at www.xyz.com (not the actual url but easier to type! :biggrin:) and the new site at www.xyz.com/wordpress. Now that the WordPress site is ready, I need to do some jiggery pokery so that the new website is served when accessing www.xyz.com (i.e. rather than having to go to www.xyz.com/wordpress).

 

I've tried a few things including changing the WordPress setting "Site Address (URL) " to be www.xyz.com/wordpress and also tinkering with .htaccess, but no joy. I've never done this before and don't really know what I'm doing so I was wondering if anyone had any experience with this kind of thing and could provide a few pointers?

 

Thanks

not great but just create an index.html file in the root folder and point it to the new wordpress site, archive off the existing site files if you want to.

 

John

Changing the Site Address fields and then moving the files to the root should be all you need to do (in that order or it's a *massive* pain). There'll probably be a lot of cleanup with links and image URLs as well but there's a lot of plugins that can handle that for you if it's a huge site.

 

The official how-to is at https://codex.wordpress.org/Moving_WordPress if you want step-by step. But as jjc said, you could just keep the files in the subdirectory and serve them from root with a .htaccess file ( https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory )

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Welcome to BRISKODA. Please note the following important links Terms of Use. We have a comprehensive Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.