How to Get Rid of /wordpress/ From your WordPress Site URL

Are you trying to remove /wordpress/ from your websites URL.Sometimes beginners install WordPress in a subdirectory, and this causes /wordpress/ to ap

WordPress Information:How to Get Rid of /wordpress/ From your WordPress Site URL

Are attempting to take away /wordpress/ from your web site' URL?

Generally learners set up WordPress in a subdirectory, and this causes /wordpress/ to seem of their web site URL, similar to http://instance.com/wordpress/.

On this article, we'll present you ways to get rid of /wordpress/ from your WordPress website URL.

How to Get Rid of /wordpress/ From your WordPress Site URL

Word: The tactic proven on this tutorial additionally works for different subdirectories.

Why Does My Web site Have /wordpress/ in Its URL?

WordPress is sort of straightforward to set up, and most WordPress internet hosting corporations supply fast WordPress installers of their internet hosting management panels.

Nonetheless, some learners set up their WordPress web site manually might find yourself unintentionally putting in it in a subdirectory. Most frequently, this subdirectory is called ‘wordpress'.

This often occurs as a result of customers find yourself importing the wordpress folder they discover contained in the official WordPress.org obtain.

Let's check out how to simply repair this and get rid of /wordpress/ from your website's URL. We are going to cowl three strategies, and you should utilize these hyperlinks to bounce to the one you need to use:

  1. Merely Begin Over With a New WordPress Set up
  2. Change Your WordPress Site Handle
  3. Transfer WordPress to the Root Listing

Technique 1: Merely Begin Over With a New WordPress Set up

You probably have simply put in WordPress and there's no content material on your web site, then you possibly can simply go forward and begin over.

Merely delete the present set up, and comply with the directions in our WordPress set up tutorial to correctly reinstall WordPress.

You probably have already added content material to your web site, then there are two straightforward methods to take away the /wordpress/ from your website's URL. We are going to cowl them in Strategies 2 and three.

Technique 2: Change Your WordPress Site Handle

You probably have a longtime WordPress website, then this methodology is simpler and faster. The draw back of this methodology is that your media information, similar to photographs, will nonetheless use /wordpress/ of their URL.

First, you want to log in to your WordPress admin space and go to Settings » Normal. You'll discover the ‘WordPress Handle' and ‘Site Handle' fields each may have the identical URL.

You want to change the ‘Site Handle' possibility and level it to your root area, e.g. http://www.instance.com and go away the ‘WordPress Handle' possibility as it's.

When you do this, click on on the ‘Save Adjustments' button to retailer your settings.

How to Get Rid of /wordpress/ From your WordPress Site URL

Subsequent, you want to join to your web site utilizing an FTP consumer. As soon as there, go to the /wordpress/ listing and obtain the .htaccess and index.php information to your laptop.

In case you are unable to find the .htaccess file, then you could want to drive your FTP consumer to present hidden information. In case you are utilizing Filezilla, then you definitely want to click on on Server from the menu bar and choose the ‘Power displaying hidden information' possibility.

How to Get Rid of /wordpress/ From your WordPress Site URL

Upon getting downloaded each information to your laptop, you want to the index. file in a textual content editor like Notepad. On this file, you'll discover a line like this:

require( dirname( __FILE__ ) . '/wp-blog-header.php' );
Hosted with ❤️ by WPCode
1-click Use in WordPress

This line hundreds the wp-blog-header.php file, which is required to load your WordPress website.

you want to do now could be enter the right location of the file by the present line with this one:

require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
Hosted with ❤️ by WPCode
1-click Use in WordPress

Save your modifications and add each index.php and .htaccess information from your desktop laptop to the basis of your area utilizing FTP.

The basis folder is the mum or dad folder with the ‘wordpress' folder inside it, and it's often referred to as /www/ or /public_html/.

How to Get Rid of /wordpress/ From your WordPress Site URL

That's all. Now you can go to your web site utilizing the basis area, and all the things will work nice.

http://instance.com

Nonetheless, in the event you want to log in to your WordPress admin, then you'll nonetheless want to go to the wp-admin contained in the ‘wordpress' listing like this:

http://www.instance.com/wordpress/wp-admin

Technique 3: Transfer WordPress to the Root Listing

This methodology is extra complete and can completely transfer your WordPress website from the subdirectory to the basis folder of your web site.

Step 1: Create a Duplicator Bundle

First, you want to set up and activate the Duplicator plugin on your web site. For extra particulars, see our step-by-step information on how to set up a WordPress plugin.

Upon activation, you want to go to the Duplicator » Settings web page after which click on on the ‘Create New' button.

How to Get Rid of /wordpress/ From your WordPress Site URL

It will launch the Duplicator wizard, which is able to create an installer bundle of your full web site. Click on on the subsequent button to proceed.

Subsequent, the plugin will some scans. If all the things seems to be good, then you possibly can click on on the ‘Construct' button on the backside.

How to Get Rid of /wordpress/ From your WordPress Site URL

Duplicator will now create a bundle and immediate you to obtain it together with the installer script. Go forward and obtain each information to your laptop.

How to Get Rid of /wordpress/ From your WordPress Site URL

Step 2: Create a New Database for a Contemporary WordPress Set up

You should utilize the present WordPress database, however it's higher to create a brand new one in order that your previous database is secure and unchanged. This fashion, you possibly can revert again to your website with out a lot fuss if one thing goes improper.

You want to go to your internet hosting account's cPanel dashboard, scroll down to the ‘Databases' part, after which click on on the ‘MySQL Databases' icon.

How to Get Rid of /wordpress/ From your WordPress Site URL

After that, merely present a reputation for your database and click on on the ‘Create Database' button.

How to Get Rid of /wordpress/ From your WordPress Site URL

cPanel will now create a brand new database for you. After that, you want to scroll down to the ‘MySQL Customers' part.

From right here, you want to present a username and password for your new database person and click on on the ‘Create a Person' button.

How to Get Rid of /wordpress/ From your WordPress Site URL

Now you want to assign database permissions to the brand new person.

Scroll down to the ‘Add Person to Database' part. Merely choose the database person you created from the dropdown menu subsequent to the ‘Person' area, then choose the database. Lastly, click on on the ‘Add' button.

How to Get Rid of /wordpress/ From your WordPress Site URL

Your new database is now prepared to be used for the contemporary WordPress set up.

Step 3: Run the Duplicator Wizard

Now, you want to add the Duplicator archive bundle and the installer file you downloaded earlier to the basis listing of your web site.

This would be the listing containing the/wordpress/ folder.

How to Get Rid of /wordpress/ From your WordPress Site URL

After you've uploaded each information, open the installer script in a browser window. You will want to enter your website's root URL after which prefix it with /installer.php.

https://instance.com/installer.php
Hosted with ❤️ by WPCode
1-click Use in WordPress

It will open the Duplicator installer wizard.

How to Get Rid of /wordpress/ From your WordPress Site URL

Test the phrases and circumstances field after which click on on the ‘Subsequent' button to proceed.

Subsequent, it is going to ask you to present the database . Enter the data for the database we created earlier in step 2.

How to Get Rid of /wordpress/ From your WordPress Site URL

After getting into the database info, click on on the ‘Subsequent' button to proceed. Duplicator will now unpack your WordPress database backup from the archive into your new database.

Subsequent, it is going to ask you to replace the positioning URL and path. You don't want to do something right here, as it is going to routinely detect the brand new URL and path. Nonetheless, if it doesn't, then you possibly can manually enter the small print right here.

How to Get Rid of /wordpress/ From your WordPress Site URL

Duplicator will now end the migration, and it is possible for you to to click on on the ‘Admin Login' button to entry your web site on the new location.

How to Get Rid of /wordpress/ From your WordPress Site URL

Step 4: Set Up Subdirectory to Root Folder Redirects

Congratulations, you've efficiently moved your WordPress website from the subdirectory to the basis folder.

Now it's time to arrange redirects in order that your customers and search engines like google can discover your web site's new location.

First, you want to join to your WordPress website utilizing an FTP consumer after which delete the previous /wordpress/ folder.

How to Get Rid of /wordpress/ From your WordPress Site URL

After that, change to the admin space of your WordPress website. Since you've moved it to the basis of your web site, your WordPress admin URL might be like this:

https://instance.com/wp-admin

Now, you want to set up and activate the Redirection plugin. For extra particulars, see our step-by-step information on how to set up a WordPress plugin.

Upon activation, you want to go to the Instruments » Redirection web page. The plugin will now present you a setup wizard. Merely click on on the ‘Proceed Setup' after which ‘End Setup' buttons.

How to Get Rid of /wordpress/ From your WordPress Site URL

Subsequent, you want to change to the ‘Redirects' tab and add your new redirect.

First, you want to examine the ‘Regex' field on the nook of the primary area.

After that, go to the ‘Supply URL' area and add https://instance.com/wordpress/.*Subsequent, go to the ‘Goal URL' area and add https://instance.com/$1.

How to Get Rid of /wordpress/ From your WordPress Site URL

Don't overlook to change ‘instance.com' with your personal area title. Then be sure to click on the ‘Add Redirect' button to save your modifications, and you might be accomplished.

One other instrument you should utilize to redirect posts and pages is All in One website positioning (AIOSEO). We present you ways to redirect guests utilizing previous containing /wordpress/ to your new website location in our newbie's information on how to do full website redirects in WordPress.

Plus, you possibly can allow 404 error monitoring to catch any damaged hyperlinks so that you simply don't lose key phrase rankings.

From now on, all customers attempting to entry your web site with /wordpress/ within the URL might be routinely redirected to the right posts with your new root URL.

We hope this text helped you find out how to get rid of /wordpress/ from your WordPress website URL. You may additionally need to find out how to pace up your WordPress efficiency or see our prime picks for one of the best WordPress website positioning plugins and instruments.

Alex

Alex

Alex is a word addict and SEO fanatic that loves telling tech and digital marketing stories. Driven by his devotion to quality, he constantly looks for better ways to deliver content that inspires people.

Articles: 108

Leave a Reply

Your email address will not be published. Required fields are marked *