WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Tutorials» How to Get Rid of /wordpress/ From your WordPress Site URL

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

Last updated on March 18th, 2019 by Editorial Staff
265 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Get Rid of /wordpress/ From your WordPress Site URL

Are you trying to remove /wordpress/ from your website’s URL? Sometimes beginners end up installing WordPress in a subdirectory, which causes /wordpress/ to appear in their website URL.

If you accidentally installed WordPress in a subdirectory and want to move it to the root directory, then you’re in the right place. In this article, we will show you how to get rid of /wordpress/ from your WordPress site’s URL.

Removing /wordpress/ from your WordPress site url

Note: The method shown in this tutorial works for other subdirectories as well.

Why You See /wordpress/ in Your WordPress Site URL

WordPress is quite easy to install and nowadays most WordPress hosting companies offer quick WordPress installers in thier hosting control panel.

However, some beginners who are manually installing WordPress may end up accidentally installing it in a subdirectory. Most often this subdirectory is named wordpress.

This happens primarily because users end up uploading the wordpress folder they find inside the official WordPress.org download.

Let’s take a look at how to easily fix this and get rid of /wordpress/ from your site’s URL.

Removing /wordpress/ from WordPress Site URL

If you have just installed WordPress and there is no content on your website, then you can just go ahead and start over.

Simply delete the current installation, and follow the instructions in our WordPress installation tutorial to properly reinstall WordPress.

If you have already added content to your website, then there are two easy ways to remove the /wordpress/ from your site’s URL.

Method 1: Change WordPress Site Address

If you have an established WordPress site, then this method is easier and quicker. The downside of this method is that your media files such as images will still use /wordpress/ in the URL.

First, you need to login to your WordPress site’s admin area and go to Settings » General page.

You will notice the ‘WordPress Address’ and ‘Site Address’ fields and both will have the same URL.

You need to change the Site Address option and point to your root domain, e.g. http://www.example.com and leave WordPress Address option as it is.

Once you do that, click on Save Changes button to store your settings.

Change WordPress site address

Next, you need to connect to your website using an FTP client. Once you are connected, go to the /wordpress/ directory and download the .htaccess and index.php files to your computer.

If you are unable to locate the .htaccess file, then you may need to force your FTP client to show hidden files. If you are using Filezilla, then you need to click on Server from the menu bar and select ‘Force Showing Hidden Files’ option.

Show hidden files in your FTP client

Once you have downloaded both files to your Desktop, you need to open index.php file in a text editor like Notepad. In this file you will find a line like this:

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

This line loads the wp-blog-header.php file which is required to load your WordPress site.

What you need to do now is enter the correct location of the file by replacing the existing line with this one:

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

Save your changes and upload both index.php and .htaccess files from your desktop to the root of your domain using FTP. The root folder is the parent folder with the wordpress folder inside it usually called /www/ or /public_html/

Root directory with a separate WordPress folder inside it

That’s all. You can now visit your website using the root domain, and everything will work fine. However, if you need to login to your WordPress admin, then you will still need to go to the wp-admin inside the wordpress directory like this:

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

Method 2: Move WordPress to Root Directory

This method is more comprehensive and will permanently move your WordPress site from the subdirectory to the root folder of your website.

Step 1. Create a Duplicator Package

First, you need to install and activate the Duplicator plugin on your website. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Duplicator » Settings page and click on the ‘Create New’ button.

Create new duplicator package

This will launch the Duplicator wizard, which will create an installer package of your complete website. Click on the next button to continue.

Next, the plugin will run some scans. If everything looks OK, then you can click on the Build button.

Build duplicator package

Duplicator will now create a package and prompt you to download it along with the installer script. Go ahead and download both files to your computer.

Download duplicator package

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

You can use the existing WordPress database, but it is better to create a new one so that your old database is safe and unchanged. This way you could revert back to your site without much fuss if something goes wrong.

Visit your hosting account’s cPanel dashboard, scroll down to the ‘Databases’ section, and then click on the ‘MySQL Databases’ icon.

Database cPanel

After that simply provide a name for your database and click on the ‘Create Database’ button.

Create database

Cpanel will now create a new database for you. After that, you need to scroll down to the ‘MySQL Users’ section.

From here you need to provide a username and password for your new database user and click on the ‘Create a user’ button.

Create MySQL user

Now you need to assign database permissions to the new user.

Scroll down to the ‘Add User to Database’ section. Simply select the database user you created from the dropdown menu next to the ‘User’ field, then select the database, and click on the add button.

Add user to database

Your new database is now ready to be used for the fresh WordPress installation.

Step 3. Run the Duplicator Wizard

Now, you need to upload the Duplicator archive package and the installer file you downloaded earlier to the root directory of your website.

This will be the directory containing the /wordpress/ folder.

Upload Duplicator files to the root folder of your website

After you have uploaded both files, open the installer script in a browser window. You will need to enter your site’s root URL and then prefix it with /installer.php.

https://example.com/installer.php

This will open the Duplicator installer wizard.

Duplicator wizard

Check the terms and conditions box and then click on the ‘Next’ button to continue.

Next, it will ask you to provide the database information. Enter the information for the database we created earlier in step 2.

Connect your database

After entering database information, click on the next button to continue.

Duplicator will now unpack your WordPress database backup from the archive into your new database.

Next, it will ask you to update the site URL and Path. You don’t need to do anything here as it will automatically detect new URL and path. However, if it doesn’t, then you can manually enter it here.

New site settings

Duplicator will now finish the migration, and you will be able to click on the Admin login button to access your website on the new location.

Migration finished

Step 4. Set up Subdirectory to Root Folder Redirects

Congrats, you have moved your WordPress site from subdirectory to the root folder.

Now it is time to setup redirects, so that your users and search engines can find your website’s new location.

First, you need to connect to your WordPress site using an FTP client and then delete the old /wordpress/ folder.

Delete old wordpress subdirectory

After that, switch to the admin area of your WordPress site. Since you have moved it to the root of your website your WordPress admin URL will be like this:

https://example.com/wp-admin

Now, you need to install and activate the Redirection plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Tools » Redirection page. The plugin will now show you a setup wizard. Simply click on the continue setup and then finish setup button.

Redirection setup

Next, you need to switch to the ‘Redirects’ tab and add your new redirect.

First check the ‘Regex’ checkbox at the corner of the first field.

After that, For source URL you will add https://example.com/wordpress/.* and for Target URL you will add https://example.com/$1.

Redirect subdirectory to root folder

Don’t forget to replace example.com with your own domain name. Click on the ‘Add Redirect’ button to save your changes.

From now on all users accessing your website with /wordpress/ in the URL will be automatically redirected to correct posts with your new root URL.

That’s all. We hope this article helped you learn how to get rid of /wordpress/ from your WordPress site URL. You may also want to see our comprehensive guide to most common WordPress errors and how to fix them.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

265 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

132 Comments

Leave a Reply
  1. Alice K says:
    Jan 13, 2020 at 1:31 pm

    Hi!
    First, thank you very much!
    I followed the second method, and now accessing the admin page works without adding “/wordpress” in the URL.
    But when I try to access my website I still have to add “/wordpress” to the URL?!
    Can anyone help? Where have I gone wrong?

    Reply
    • WPBeginner Support says:
      Jan 14, 2020 at 10:41 am

      The site is likely active in the old location, you should should still be able to see your login if you go to yourdomain/wp-login.php

      Reply
  2. sginader says:
    Nov 18, 2019 at 8:40 pm

    Thank you! I’m a WP novice so your step by step instructions was perfect. I do have a question – I followed Method 1 – does the redirect add to the site loading time? I ask because my site takes very long to load. Thank you!

    Reply
    • WPBeginner Support says:
      Nov 19, 2019 at 10:05 am

      While it adds a small amount to the loading time, it shouldn’t add enough to be noticeable. If this increase in load time was recent then you may want to check with your host to ensure there isn’t something conflicting with the redirect you set up.

      Reply
  3. Nkosiyapha says:
    Nov 6, 2019 at 2:23 pm

    This was very helpful. Thank you very much

    Reply
    • WPBeginner Support says:
      Nov 7, 2019 at 9:55 am

      You’re welcome :)

      Reply
  4. Rachel says:
    Jul 8, 2019 at 10:42 pm

    I have a question: if I use method 1, do I have to change all url links of my posts and images? My blog are actually inside a folder and I want to make a redirection to the root domain. It’s not clear…

    Reply
    • WPBeginner Support says:
      Jul 9, 2019 at 1:31 pm

      For the first method, you shouldn’t need to redirect your posts.

      Reply
  5. birgit van Munster says:
    Mar 14, 2019 at 7:11 am

    Hi, I made the change in the index.pho file as directed and moved the two files to the root directory, but I get this error message:

    Parse error: syntax error, unexpected ” );’ (T_ENCAPSED_AND_WHITESPACE) in /data/40/5/47/114/5373603/user/6433782/htdocs/index.php on line 17

    I think line 17 is exactly as described in the instructions, please help!

    Reply
    • WPBeginner Support says:
      Mar 14, 2019 at 11:00 am

      You may want to ensure you copied the code correctly and pasted it on a new line. You may want to take a look at our article here: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/

      Reply
  6. Bella says:
    Oct 24, 2018 at 4:04 pm

    Thank you so much! The guide I was reading didn’t mention the .htaccess part. This guide fixed the error on my site. Great work!

    Reply
  7. Bart says:
    Jun 3, 2018 at 4:37 am

    Hi!
    Great tutorial, and my URL now redirects (woohoo!)
    However when I go the settings tab and change the site title to the one without /wordpress, the site works fine except for the home page, which gives an error.

    What am I missing here…?

    Reply
  8. TROP ICSU says:
    May 11, 2018 at 6:58 am

    Hi there!

    I have my site hosted on my server. WordPress dir is located in /home/myuser/.
    I tried to follow your steps by copying the updated index.php and .htaccess into same dir level where wordpress dir is. But no success.

    Can you pl guide? Thank you.

    Reply
  9. Rachel says:
    Apr 18, 2018 at 8:42 pm

    If I have a wordpress instance in a subdirectory and I just want to delete it and not move it, can I just delete the folder, or do I need to go through some kind of un-install procedure so it is removed from the database as well?

    Reply
    • WPBeginner Support says:
      Apr 19, 2018 at 8:17 pm

      Hi Rachel,

      Yes you can delete it. However, we will still recommend to download it as a backup before deleting it.

      Reply
  10. Michael Hayman says:
    Feb 18, 2018 at 10:33 am

    Hey, so i had a go at this, and for some reason i am now faced with an HTTP 500 error.

    Not sure where i went wrong, but i don’t seem to be able to get it back to normal.

    Any ideas would be much appreciated.

    I have tried resetting the index.php back to default as well as the .htacess file with no avail.

    To make matters more difficult i get the same HTTP 500 message when trying to login to the wordpress admin as well.

    Reply
    • Clarisse says:
      Feb 23, 2018 at 6:56 pm

      Hi Michael,

      My folder is called “/wp” instead of “/wordpress”, so probably yours too!

      That might be the problem…

      Reply
      • Louise says:
        Apr 5, 2018 at 6:36 pm

        I had the same problem, and my folder was called wp. I just went back to the index.html file and changed it from wordpress to wp and problem solved! Such a helpful article, this was hanging over my head for months and so glad to have it fixed!

        Reply
  11. Gareth Botha says:
    Feb 11, 2018 at 9:40 am

    Hi Syed, many thanks for all these, I have been postponing my site for over a year now as it was simply too intimidating. I had however made the fault of installing wordpress to the subdomain /wp and set the entire site up. Just sorted it out with you tut above. I have however come across a new problem, my home/landing page no longer loads my blog posts. How do I resolved this? I also get a redirect error as well.

    Reply
    • WPBeginner Support says:
      Feb 12, 2018 at 4:03 pm

      Hi Gareth,

      Good luck with your new website. Wish we could be more helpful, but it is up to the theme and your website settings. Please see our WordPress troubleshooting guide to figure out whats causing it.

      Reply
  12. Yan Xun says:
    Dec 19, 2017 at 2:22 pm

    Hi, I followed these steps and my website is working fine. Only issue is now I can’t seem to load my theme’s UX Builder for my site.

    does this method cause any issue if I am using a theme UX builder?

    Reply
    • WPBeginner Support says:
      Dec 19, 2017 at 9:15 pm

      Hi Yan Xun,

      Here is what you can try. First create a backup of your website. After that Uninstall the UX builder by visiting the plugins page, now install and activate it again.

      If it comes packaged with your theme, then again create a backup of your website. After that you need to download a fresh copy of your theme. Next, temporarily switch your WordPress site to a default WordPress theme like TwentySeventeen. Delete your old theme and then install it from the zip file you downloaded earlier.

      Reply
  13. Gina says:
    Nov 17, 2017 at 5:58 pm

    Help! I followed your tutorial for removing wordpress. Now I can’t get into the site or admin.
    Getting the following:
    Warning: require(/home/content/09/8001609/html/wordpress/wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/content/09/8001609/html/index.php on line 17

    Fatal error: require() [function.require]: Failed opening required ‘/home/content/09/8001609/html/wordpress/wp-blog-header.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/09/8001609/html/index.php on line 17

    Reply
  14. Marko says:
    Nov 4, 2017 at 3:57 pm

    Done that, and ‘/wordpress’ from addressbar is gone, but Google still lists it with it in the search. For example:

    Reply
    • WPBeginner Support says:
      Nov 5, 2017 at 10:47 pm

      Hi Marko,

      You will need to redirect those users. See our guide on how to setup redirects in WordPress.

      Reply
  15. Andrew says:
    Sep 25, 2017 at 6:44 pm

    Thanks guys i love u <3

    Reply
  16. Priyanka says:
    Sep 16, 2017 at 12:47 pm

    This tutorial is a life saviour. Thank you so much.

    Reply
  17. Beth says:
    Sep 10, 2017 at 6:47 pm

    Thanks for your helpful website. I downloaded .htaccess and index.php. My index php says index.php4 The line on it says this: .htaccess disapears when I download it to the desktop. In ftp, they are located in the same folder as the wordpress1 folder is located. It appears to be the root directory. The site has the url with wordpress1 at the end of it. I’m not sure what to do, and don’t want to crash the site!

    Thanks,
    Beth

    Reply
  18. Lee Graham says:
    Aug 11, 2017 at 9:52 am

    Can I ask why you download .htaccess only to upload it again?, there is no mention of edting htaccess so why download in the first place ?

    Reply
    • Brandi says:
      Aug 24, 2017 at 11:24 am

      I believe he’s asking us to download the one from the /wordpress/ subdirectory and then upload it to the / root (which is up one level). I hope that helps :)

      Reply
  19. Manpreet Kaur says:
    Aug 1, 2017 at 8:37 pm

    HI,

    Thankyou so much for these helpful tutorials my one problem is solved but there is one another. When I search on google and type my website address it shows index of link instead of my website name. When I click on that link it opens my website. Can anyone help me to display my website URL on google instead of index of URL.

    Reply
  20. Ariadne1985 says:
    Jul 9, 2017 at 9:17 am

    THANK YOU SO MUCH!!!

    I spent hours working on it (failure) and then found your site + explanation.

    SUPERB!

    Reply
  21. Filip Kevely says:
    May 3, 2017 at 5:17 pm

    1. I have moved my example.com WP installation into subfolder (let’s call it “secret-sub”).

    2. Typing example.com/wp-login.php automatically re-directs me to example.com/secret-sub/wp-login.php :((

    ((Note: Visiting no other part of my web page shows this subfolder name as part of URL address; visitors see only example.com everywhere.))

    Is this normal behaviour?

    And if so – what’s actually the point of having your WP installation in “secret” subfolder – when basic /wp-login.php and /wp-admin brute attack re-directs to URL showing the “secret subfolder” name??

    Any clear explanation will be very much appreciated. Thx.

    Reply
    • WPBeginner Support says:
      May 3, 2017 at 10:19 pm

      Hi Filip Kevely,

      When you install another WordPress instance in a sub-folder it creates a conflict for WordPress permalinks. To fix that you need to add this code to your sub-folder site’s .htaccess file:

      # BEGIN WordPress
      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /secret-sub/
      RewriteRule ^index\.php$ – [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /secret-sub/index.php [L]
      </IfModule>
      # END WordPress
      

      Don’t forget to replace secret-sub with the actual subfolder name.

      Reply
  22. Charlotte Tomic says:
    Apr 6, 2017 at 11:01 am

    How do you get rid of FEATURED CONTENT on your blog? I eliminated footers without a problem, but can’t get rid of featured content showing up on the blog front page.

    Reply
  23. Jade says:
    Mar 21, 2017 at 5:19 am

    Hi there, I am pulling my hair out…….I dont have the wordpress address url or the Site Address url under settings general! I have one site with nothing on it with my web address and then another site which I have fixed up with the same name but then wordpress.com at the end, any help would be greatly appreciated.

    Reply
  24. Arif says:
    Mar 19, 2017 at 4:35 pm

    I have followed given the instruction but I am facing problem my website is not open correct and wp login penal is not coming please help me quickly.

    Reply
  25. Bright Bernard says:
    Feb 23, 2017 at 12:35 pm

    Hello,

    I successfully got rid of /wordpress from site URL following the instructions in the tutorial but once i installed yoast for seo , google shows the pages with /worpress in its search results.how can we remove that from google search results also?

    Reply
  26. Blane says:
    Feb 22, 2017 at 11:55 am

    Thank you! This works great!

    Reply
  27. Kala says:
    Feb 21, 2017 at 6:35 pm

    Please help, I thought I had followed the steps correctly but am receiving this error when I type in my web domain:

    Fatal error: require() [function.require]: Failed opening required ‘/home/melanieh/public_html/wordpress/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/melanieh/public_html/index.php on line 17

    What did I do wrong?

    Reply
  28. Robel says:
    Feb 17, 2017 at 11:47 am

    Thank you man this work after so many hard work. Thanks again keep it up…..will come here for wordpress problem

    Reply
  29. Julius Decada says:
    Jan 30, 2017 at 9:08 am

    problem with 404, I resolve it in a longest manner, First I just open the post and click update, it works,.. although if you got a thousand post then you grow beard before you finish everything,..

    second solution

    another solution, although i never test this type of solutions in my active sites,
    1. first thing first back-up your wordpress website,
    2. when back-up is done, got to tools and click export, it will create xml file
    3. delete all post,..
    4. Import the xml file that you exported,. and and everythng go smoothly,..

    Reply
  30. Rodrigo Henriques says:
    Jan 25, 2017 at 1:43 pm

    Thank you for the great tutorial. Worked perfectly!

    Reply
  31. rio says:
    Jan 22, 2017 at 4:13 am

    everything worked except my root domain name.

    when I go to mydomain.com I get a 500 error, but all my links mydomain.com/contact mydomain.com/links look fie

    Reply
    • Rodrigo Henriques says:
      Jan 25, 2017 at 1:42 pm

      Hi,

      have you checked if you REALLY have a “yourdomain/wordpress” directory?
      Or a “yourdomain/wp” directory!

      Because if you do you have to change the index.php editing accordingly ; )

      Hope that helps,, it worked for me ; )

      Reply
      • Marko Vojnovic says:
        Jan 30, 2017 at 10:38 pm

        THANK YOU SO MUCH!!!!!!! :D

        Reply
      • omkar says:
        Mar 29, 2017 at 8:38 pm

        how to check whether i have a /wordpress or a /wp directory? and what following changes should i make then in the index.php file?

        Reply
      • Tammie Radikopf says:
        Oct 1, 2017 at 4:21 pm

        Thank you for this reply!! Your answer is what helped me solve my problem. I didn’t realize you couldn’t just use ‘wordpress’ as the tutorial said but needed to use the exact subdirectory name. it worked. Thanks!!

        Reply
  32. Vernon Harris says:
    Jan 11, 2017 at 3:20 pm

    I was moving our word press site from the root folder to a sub folder and everything almost worked. The only exception was that I couldn’t find a way to remove the sub-folder from the domain URL. This site had the easiest instructions and was easy to follow. It worked perfectly the 1st time. Thank You!

    Reply
    • WPBeginner Support says:
      Jan 12, 2017 at 1:28 am

      Hi Vernon,

      Glad you found it helpful :) Don’t forget to join us on Twitter for more WordPress tips and tutorials.

      Reply
      • rio says:
        Jan 22, 2017 at 4:17 am

        I followed the steps but now my website page isn’t working. And I cannot open my wordpress admin page either. Help?

        Reply
  33. Fadiah Karim says:
    Dec 2, 2016 at 4:40 am

    I followed the steps but now my website page isn’t working. And I cannot open my wordpress admin page either. Help?

    Reply
  34. Dan Kemble says:
    Nov 28, 2016 at 4:57 pm

    You say upload the ht access file but you never say how to edit it?

    Reply
  35. Alexandra says:
    Nov 14, 2016 at 7:15 am

    I never leave comments but this post was just so clear and helpful that I have to say THANK YOU!!! :-)))

    Reply
    • WPBeginner Support says:
      Nov 16, 2016 at 2:04 pm

      Hi Alexandra,

      Thanks, we are glad you found it helpful. Don’t forget to join us on Twitter for more WordPress tips and tutorials.

      Reply
  36. JO says:
    Nov 4, 2016 at 6:55 pm

    Thank you so much for this – it worked and as a total WP novice I can’t believe I did it myself! You’re awesome

    Reply
    • WPBeginner Support says:
      Nov 5, 2016 at 12:05 am

      Hey JO,

      We are glad you found it helpful :)

      You may also want to subscribe to our YouTube Channel for WordPress video tutorials.

      Reply
  37. Sandip says:
    Oct 8, 2016 at 3:01 am

    Thanks so much for this. I did install WP into a subdirectory and then spent a week remaking the site so that it was installed in the root directory :( At least now I know better after reading your tutorial.

    Reply
  38. Temitope says:
    Aug 19, 2016 at 11:09 am

    Hello, Thanks for the tutorial, I’m pretty new to WordPress, I did a one click install and it was a multisite installation too. The website URL and domain URL fields are’nt available under settings. Please how do I go about this on a multisite???

    Reply
  39. Rogue says:
    Jun 28, 2016 at 5:28 am

    Wonderful tutorial, worked perfectly, thanks man

    Reply
  40. Tobi says:
    Jun 4, 2016 at 2:21 pm

    Hi, great article, the first one I found which explains this topic in a good matter.
    I have a similar problem, but a little bit more tricky. I do not know how it happened, but certainly I have done something strange at the WP installation. If I check my homepage it is actually in another extra worpress folder, that means I have WP in another WP folder, so my homepage looks like this: “www.example.com/wordpress/wordpress”. in the filemanager in the frp client i can see in the public_html two folders of wordpress. I did not move yet the wordpress folder with the content one level up and actually eliminate the other folder, because I am worried that I will mass it up.
    Has anybody have an idea what would be the best solution? So I actually get the homepage opened under: “www.example.com” and not “www.example.com/wordpress/wordpress”?

    thanks for any good hint/solution.

    Reply
  41. Brandi says:
    Jun 2, 2016 at 10:45 am

    Thank you so much for this!! I did everything you said to do, and almost everything works. There’s just one page that stopped working and is returning a 404 error page. Can you help? Thanks!

    Reply
  42. Krista Hagman says:
    Apr 19, 2016 at 10:46 pm

    I tried, but the space that says Website Address and site address does not exist in my General area in Settings.
    Is there another way to do it?

    Reply
  43. Carolina says:
    Jan 25, 2016 at 8:44 am

    I see that several have the same problem as me, but I can not see any response to the issue.

    That is that everything seems to work fine except for:
    the home-page which is still directing to site.com/wordpress and therefore shows a 404 page.
    I did try to delete the htaccess file from the root directory and update the url-structure. it created a new htaccess file but the problem still is the same..

    Would really appreciate your response to this!
    Thank you for a great post.

    Reply
    • may says:
      Mar 29, 2016 at 9:00 am

      My problem was from menu

      Try to check your URL from WP-admin —>>> appearance —>>> menu —>>> home —>>> custom link URL

      Reply
  44. Anna Acenas says:
    Jan 21, 2016 at 11:57 pm

    hello
    how can i remove my blog Im not a the owner of a site can i still remove my blog even im not the owner.please help me

    Reply
  45. John says:
    Jan 20, 2016 at 3:00 am

    I have a question, is there something like this for Joomla? Because I couldn’t find anything on the internet.

    Reply
  46. Amardeep gupta says:
    Jan 18, 2016 at 4:51 am

    Hello,
    First of all thanks for this article. But there is one problem stand for me.
    As I followed your step as you mention so i got Index.php but didn’t find .htaccess file.
    But i did same mean
    change ‘/wp-blog-header.php’ to ‘/wordpress/wp-blog-header.php’
    but my home page only show without /wordpress and rest of pages will show 404- error.
    please help me to slove this problem.

    Reply
  47. Avinash says:
    Jan 7, 2016 at 3:21 pm

    It is not working me :-(

    Reply
  48. Ashok Kumar says:
    Dec 8, 2015 at 1:54 am

    I have two domains in a single account. and so two wordpress installations in two subfolders. In this case, is it possible to move index.php and .htaccess of both sites to same root directory. If not what to do ?

    Reply
    • Shady says:
      Jan 11, 2016 at 6:05 am

      You can make use of vhost go in the conf of ur webhost and do something like:

      DocumentRoot D:/webserver/htdocs/domain1
      ServerName domain1.om
      ServerAlias www.domain1.com
      
      
      
      
      DocumentRoot D:/webserver/htdocs/domain2
      ServerName domain2.om
      ServerAlias www.domain2.com
      

      This will make the subfolder the root for the domain you want to

      Reply
  49. Anna says:
    Dec 1, 2015 at 2:32 am

    Gah! I followed the steps and it was fine. Then I went to permalinks, hit save changes and it broke! I’m getting a 500 error message! Please help me! I need to fix it! Thank you x

    Reply
    • Shady says:
      Jan 20, 2016 at 5:31 am

      Still have the same problem? I can help you :)

      Reply
  50. shamsher khan says:
    Nov 29, 2015 at 5:04 am

    HI, everyone, i have an urgent query that

    my client website a news website now we want to launch Hindi and Urdu version of news so
    we decided to create a folder in

    public_html/www.example.com/hi
    public_html/www.example.com/ur
    public_html/www.example.com/fr

    and install wordpress

    But we want our site url should be like this:

    http://www.example.com/hindi/article-title-slug
    http://www.example.com/urdu/article-title-slug

    is this possible and if yes then how can i do it plz help

    Reply
    • WPBeginner Support says:
      Nov 29, 2015 at 2:08 pm

      It is possible. There are multiple ways to do this. You can consider creating a multilingual WordPress site. This will eliminate maintaining separate WordPress installs.

      You can also go installing multiple WordPress instances in separate directories for each language. You will have to setup redirects in .htaccess file.

      Reply
« 1 2

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
SeedProd Logo
SeedProd
Create beautiful custom landing pages - Drag & drop builder. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
Pretty Links
Pretty Links Pro Coupon
Get up to 35% OFF on Pretty Links Pro WordPress URL shortener and affiliate links cloaking plugin.
MainWP
MainWP Coupon
Get 15% OFF on MainWP WordPress multisite manager plugin.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.