Latest Tech and Tips

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

7

Are you attempting to get rid of/ wordpress/ from your site’s URL? Sometimes newbies wind up setting up WordPress in a subdirectory, which triggers/ wordpress/ to show up in their siteURL

If you inadvertently set up WordPress in a subdirectory as well as desire to relocate to the origin directory site, after that you’re in the appropriate location. In this post, we will certainly reveal you how to get rid of/ wordpress/ from your WordPress site’sURL

Removing /wordpress/ from your WordPress site url

Note: The technique displayed in this tutorial helps various other subdirectories also.

Why You See/ wordpress/ in Your WordPress Site URL

WordPress is fairly very easy to set up as well as nowadays most WordPress organizing business supply fast WordPress installers in thier organizing control board.

However, some newbies that are by hand setting up WordPress might wind up inadvertently mounting it in a subdirectory. Most typically this subdirectory is called wordpress.

This takes place mainly due to the fact that customers wind up submitting the wordpress folder they locate inside the authoritiesWordPress org download.

Let’s have a look at how to conveniently repair this as well as get rid of/ wordpress/ from your site’sURL

Removing/ wordpress/ from WordPress Site URL

If you have actually simply set up WordPress as well as there is no web content on your site, after that you can simply go on as well as begin again.

Simply remove the existing installment, as well as comply with the guidelines in our WordPress installment tutorial to appropriately reinstallWordPress

If you have actually currently included web content to your site, after that there are 2 very easy means to get rid of the/ wordpress/ from your site’sURL

Method 1: Change WordPress Site Address

If you have a recognized WordPress site, after that this technique is less complicated as well as quicker. The disadvantage of this technique is that your media data such as pictures will certainly still make use of/ wordpress/ in theURL

First, you require to login to your WordPress site’s admin location as well as go to Settings” General web page.

You will certainly observe the ‘WordPress Address’ as well as ‘Site Address’ areas as well as both will certainly have the very sameURL

You requirement to alter the Site Address alternative as well as factor to your origin domain name, e.g. http://www.example.com as well as leave WordPress Address alternative as it is.

Once you do that, click Save Changes switch to shop your setups.

Change WordPress site address

Next, you require to link to your site making use of an FTP customer. Once you are attached, go to the/ wordpress/ directory site as well as download the.htaccess as well as index.php data to your computer system.

If you are incapable to situate the.htaccess data, after that you might require to pressure your FTP customer to reveal surprise data. If you are making use of Filezilla, after that you require to click Server from the food selection bar as well as pick ‘Force Showing Hidden Files’ alternative.

Show hidden files in your FTP client

Once you have actually downloaded and install both data to your Desktop, you require to open index.php data in a full-screen editor likeNotepad In this data you will certainly locate a line similar to this:

 need( dirname( __ FILE __ ). '/ wp-blog-header. php' );

This line lots the wp-blog-header. php data which is needed to tons your WordPress site.

What you require to do currently is get in the proper place of the data by changing the existing line with this one:

 need( dirname( __ FILE __ ). '/ wordpress/wp-blog-header. php' );

Save your adjustments as well as upload both index.php as well as htaccess data from your desktop computer to the origin of your domain name making use of FTP. The origin folder is the moms and dad folder with the wordpress folder inside it generally called/ www/ or/ public_html/

Root directory with a separate WordPress folder inside it

That’s all. You can currently check out your site making use of the origin domain name, as well as whatever will certainly function penalty. However, if you require to login to your WordPress admin, after that you will certainly still require to go to the wp-admin inside the wordpress directory site similar to this:

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

Method 2: Move WordPress to Root Directory

This technique is extra detailed as well as will completely relocate your WordPress site from the subdirectory to the origin folder of your site.

Step 1. Create a Duplicator Package

First, you require to set up as well as turn on the Duplicator plugin on your site. For even more information, see our detailed overview on how to set up a WordPress plugin.

Upon activation, you require to check out Duplicator” Settings web page as well as click the ‘Create New’ switch.

Create new duplicator package

This will certainly introduce the Duplicator wizard, which will certainly develop an installer bundle of your full site. Click on the following switch to proceed.

Next, the plugin will certainly run some scans. If whatever looks OK, after that you can click the Build switch.

Build duplicator package

Duplicator will certainly currently develop a bundle as well as trigger you to download it together with the installer manuscript. Go in advance as well as download and install both data to your computer system.

Download duplicator package

Step 2. Create a New Database for a Fresh WordPress Install

You can make use of the existing WordPress data source, however it is far better to develop a brand-new one to make sure that your old data source is secure as well as the same. This method you can return back to your site without much hassle if something fails.

Visit your organizing account’s cPanel control panel, scroll down to the ‘Databases’ area, and after that click the ‘MySQL Databases’ symbol.

Database cPanel

After that just supply a name for your data source as well as click the ‘Create Database’ switch.

Create database

Cpanel will certainly currently develop a brand-new data source for you. After that, you require to scroll down to the ‘MySQL Users’ area.

From right here you require to supply a username as well as password for your brand-new data source individual as well as click the ‘Create a user’ switch.

Create MySQL user

Now you require to appoint data source consents to the brand-new individual.

Scroll down to the ‘Add User to Database’ area. Simply pick the data source individual you produced from the dropdown food selection following to the ‘User’ area, after that pick the data source, as well as click the include switch.

Add user to database

Your brand-new data source is currently prepared to be utilized for the fresh WordPress installment.

Step 3. Run the Duplicator Wizard

Now, you require to publish the Duplicator archive bundle as well as the installer data you downloaded and install earlier to the origin directory site of your site.

This will certainly be the directory site having the/ wordpress/ folder.

Upload Duplicator files to the root folder of your website

After you have actually posted both data, open up the installer manuscript in an internet browser home window. You will certainly require to get in your site’s origin URL and after that prefix it with/ installer.php.

https://example.com/installer.php

This will certainly open up the Duplicator installer wizard.

Duplicator wizard

Check the terms box and after that click the ‘Next’ switch to proceed.

Next, it will certainly ask you to supply the data source info. Enter the info for the data source we produced previously symphonious 2.

Connect your database

After going into data source info, click the following switch to proceed.

Duplicator will certainly currently unload your WordPress data source back-up from the archive right into your brand-new data source.

Next, it will certainly ask you to upgrade the site URL as well asPath You do not require to do anything right here as it will instantly identify brand-new URL as well as course. However, if it does not, after that you can by hand enter it right here.

New site settings

Duplicator will certainly currently complete the movement, as well as you will certainly be able to click the Admin login switch to accessibility your site on the brand-new place.

Migration finished

Step 4. Set up Subdirectory to Root Folder Redirects

Congrats, you have actually relocated your WordPress site from subdirectory to the origin folder.

Now it is time to configuration reroutes, to make sure that your customers as well as internet search engine can locate your site’s brand-new place.

First, you require to link to your WordPress site making use of an FTP customer and after that remove the old/ wordpress/ folder.

Delete old wordpress subdirectory

After that, button to the admin location of your WordPress site. Since you have actually relocate to the origin of your site your WordPress admin URL will certainly resemble this:

https://example.com/wp-admin

Now, you require to set up as well as turn on the Redirection plugin. For even more information, see our detailed overview on how to set up a WordPress plugin.

Upon activation, you require to check out Tools” Redirection web page. The plugin will certainly currently reveal you a configuration wizard. Simply click the proceed configuration and after that complete configuration switch.

Redirection setup

Next, you require to button to the ‘Redirects’ tab as well as include your brand-new redirect.

First examine the ‘Regex’ checkbox at the edge of the initial area.

After that, For resource URL you will certainly include https://example.com/wordpress/.* as well as for Target URL you will certainly includehttps://example.com/$1

Redirect subdirectory to root folder

Don’ t fail to remember to change example.com with your very own domain. Click on the ‘Add Redirect’ switch to conserve your adjustments.

From currently on all customers accessing your site with/ wordpress/ in the URL will certainly be instantly rerouted to proper blog posts with your brand-new originURL

That’s all. We wish this post assisted you find out how to get rid of/ wordpress/ from your WordPress siteURL You might likewise desire to see our detailed overview to most typical WordPress mistakes as well as how to repair them.

If you liked this post, after that please subscribe to our YouTube Channel for WordPress video clip tutorials. You can likewise locate us on Twitter as well as Facebook.