Accidentally messed up URLs

So I installed WordPress on my Apache server and I changed the URL in the WordPress Admin Control Panel to from and now it’s taking me to my old index.html I made before I installed WordPress, even though I moved all my old stuff to a backup folder. Now I cannot get back into my WordPress admin CP.

So my question is:

How do I switch the URLs inside the WordPress files instead of the Admin CP (Cause I cannot get to it).

How do I make the WordPress url to instead of

P.S. I didn’t include http:// on the links because I can’t post more than two links with my rep.

Solutions Collecting From Web of "Accidentally messed up URLs"

Codex has an article on Changing The Site URL, you can edit values in database or override them in config.

To have your site work from root you can either relocate WP there altogether or configure it to support root of the site, while still residing in subdirectory. See Giving WordPress Its Own Directory on the latter.