[2021] How to move Wordpress from subdirectory to root directory/folder (remove wp from url)

preview_player
Показать описание
Learn how to move wordpress from sub-directory or folder to root folder. This tutorial has been created to be followed by wordpress beginners.

I hope you found this tutorial helpful and managed to move your wordpress from sub-directory to root.

This video shows a different new and better method.

Done!

Music: None
Note: This video is copyrighted. Do not copy without permission.
Рекомендации по теме
Комментарии
Автор

Very Important : PLEASE CREATE BACKUP YOU CAN USE TO RESTORE. Some elementor users have reported issues so check the comments. Thanks.
Important Update 15 Apr 2021: No extra changes are required if you are using elementor.
Text you need to replace in index.php file

Change the line that says:

require( dirname( __FILE__ ) . '/wp-blog-header.php' );

to the following, using your directory name for the WordPress core files:

require( dirname( __FILE__ ) . );

Replace wordpress with your directory name in above line.

smarthelpguides
Автор

Worked like a charm. Perfect solution and saved a ton of worry about moving files from one directory to another. A+

PrimitiveGuyStuff
Автор

Incredible video. You've saved me MASSES of work when redesigning my site. I didn't want to remove my current website until my new site was created. I was able to build my new site into a folder and simply load it instead when complete.

kimjong-un
Автор

man you are a wordpress guru, i thought of using aws ami of wp as this was not working, thanks love you man

harish
Автор

Hey man I want to do exactly this however .htaccess already exists in the root because the main site is also in a subfolder. I was wondering do I replace that htaccess with the one in the new site folder as well as the index file?

Silverturky
Автор

hey, I have a problem. All my pages shifted to the main domain, but the homepage is still redirecting to subdirectory in which the wordpress site was before.
what should i need to change ?

sukhmanpreetsingh
Автор

Hi I changed back the Elementor url back to the old one. Website is ok. Now how do I edit the website with Elementor

prasadeye
Автор

HI, I had successfully updated my website by updating the index.php file in the public_html folder. The website was working. When I updated the url in Elementor to my website url, the site images went missing. What was the problem?

prasadeye
Автор

thank you so much for sharing this content. I did it and almost everything working well but some plugins dosnt work more. Do you have any idea what can happened ? Thanks

awspring
Автор

Its working fine but in admin secction when we click on plugin its go to 404, because url got chnaged any suggestion this.

inagdlog
Автор

Great video. But am lost, I have followed all step by step, but which file did you copy that line from, as I can't see it in my own end. That is the file where you copied the command you used to replace that line.

uzogesarah
Автор

Hi. Thank for the video. Everything working well except the home page link which still pointing to /subfolder. Plz help

JanarthanamAanandan
Автор

this solution did not work for me. It redirects to my subfolder. I have changed URL of only site URL field in settings page.

HafeenVlog
Автор

Hi! and thank you! all worked until I removed the /nameOfTheFOlder from the wp panel, after that, I receive a 404 error message. I think the issue is that I'm using elementor. Can you please share the link on how to update the links there? I don't see it in the description. thanks

TheClrr
Автор

Is there an update to this video? I'm using WordPress blocks with a template.

terrikaoliver
Автор

Hi,
I followed the same steps. The website is working perfect on root directory, but my WP forms have stopped sending emails. Any idea why? It would be a great help. Thanks in advance.

imbombayboy
Автор

Site loads fine and everything but unable to edit any posts/pages.

OlegKorneitchouk
Автор

thank you so much for sharing this content

rizkihidayatcom
Автор

how to get rid of the old designed website how to delete the older one

Sam-cxhs
Автор

In the video you make a point of saying that if using Elementor - you need to update the URL. You say you will post info on what is required, but looks like you forgot to do this. How do I update the URL in Elementor?? Please advise and thanks for a great video!

jellywobbles