• Hello, I need to change the URL where my site is displayed. currently to access my home page I have to us the URL example.com/WordPress I have built my site and now want to move it to example.com . I currently have an old very basic html site running and need to replace it with my new WordPress site. I have tried changing the WordPress address URL and Site URL in Settings>general and that broke the site for a while. but I managed to do some reading in this forum and got it back to where it was originally by adding two lines of code to functions.php file. However I am back to the beginning and still need to have my WordPress site accessed by the URL example.com. I have some experience with php code but by no means am I an expert. hoping someone can help on this forum.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Are the websites example.com and example.com/wordpress hosted in the same place? If they are point your domain to the wordpress website file path. Once that is done, go to your WP website database, under options you will see two tables with your current website url (i.e. example.com/wordpress) delete it from those two tables (site address an site URL) and replace it with the domain example.com. and You should be done. If that still doesn’t work then you will need to run a renaming tool to rename your entire dbs (search and replace plugin)to the new url.

    If the website is hosted in a different hosting server, point your domain to the server where your WP website is hosted and then do the renaming process.

    Thread Starter eltigre2000

    (@eltigre2000)

    Thanks for the reply’s, I followed the link in James Huff’s post and its working now. I had to move the WordPress files to the Public_html folder. Not what I wanted to do. I wanted to keep the wordPress files in the example.com/wordpress and just have the public side of my website visible at the address example.com. I am still having difficulty understanding how to do that from the tutorial link.

    Moderator James Huff

    (@macmanx)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Need to change my Site address URL’ is closed to new replies.