I have installed my WordPress blog site here, http://www.test.com.au/demo, now I want to change my root path to this http://www.test.com.au, but when I transfer all files to here, I can't really access the site correctly.
I don't know what is actual method to do this.
Method 1. SImply login to your WordPress dashboard and go to Settings » General. Here, you can change your WordPress site URLs in the 'WordPress Address' and 'Site Address' boxes. For most websites, these will be the same URL. After that, click the 'Save Changes' button to save your URL changes.
To do this, navigate to “Settings” > “General” in the admin area. There you will find the input fields where you can change the WordPress site URL or the website URL. In the WordPress dashboard, you can change the WordPress URL under “Settings” > “General”. Usually, both URLs are identical.
All WordPress plugins you download and install on your site are stored in /wp-content/plugins/ folder.
Change the Slug for an Individual Post or Page Simply click on Edit, and then change the end of the post URL to whatever you'd like. In the Block Editor, make sure you're in the Document tab in the right-hand sidebar, and then look for the Permalink section. There you can type in your desired slug.
For example, if you wanted the “blog” folder to be inside the “public_html” folder, then the path should be “/public_html/”. If you didn’t want the folder to be created inside another folder, then this field should be blank.
Updating the URL for Your Files Log in to your WordPress site if it’s a single install and go to Settings > General in your admin dashboard. Add a slash to the end of your site’s address in the WordPress Address (URL) field, followed by the name of the directory you created.
How does one change the default URL path for blog posts? It was previously */blog/title-of-post (but now the /blog/ part is gone). Show activity on this post. You can create any structure you want for this on the permalinks settings page in the dashboard. Simply navigate to Settings -> Permalink.
In the field provided, type in the new folder where you want your WordPress website moved to and click Copy File(s). If you have not already created the folderwhere you wish to move your WordPress files, then you should create the folder first. In file manager, click on the icon labeled New Folderin the top left hand side of the menu bar.
You may need to do more than just transfer files. You will need to change a few database settings as well in wp_options. Do a select * from wp_options and see which settings are still pointing to your old location, then you can change those.
Refer this
http://codex.wordpress.org/Moving_WordPress
Here are the steps to move your site.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With