- First Log into WP admin panel, then go to Settings -> General.
- Then You need to change the Site Address option to point to your root domain, e.g. http://www.example.com and leave WordPress Address option as it is.
- Next step, you need to open File Manager or FTP client. Once you are connected, go to the /wordpress/ directory and download the .htaccess and index.php files to your computer.
- Open index.php file in the text editor like Notepad , Notepad++ etc. You need to enter /wordpress before this line /wp-blog-header.php’ .
- Upload both index.php and .htaccess files from your computer to the root of your domain using FTP or File Manager.
- In the last You can now visit your website on your main domain, and everything will work fine.
How to get rid of /wordpress/ from your WordPress site URL
0
Share.