• I apparently have made a major mistake on the URL settings for where the blog can be found.

    Now I cannot login and cannot access anything.

    Is there a way of getting in to change this somehow?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yes there is follow this instructions reset them back

    open functions.php in working theme and then FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor (like notepad) and upload it back to the site.

    Add these two lines to the file, immediately after the initial “<?php” line.

    update_option('siteurl','https://example.com/blog'); update_option('home','https://example.com/blog');

    Use your own URL instead of example.com, obviously. and then save the file and upload it back.

    Load the login or admin page a couple of times. The site should come back up. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.

    Thread Starter deusvitae

    (@deusvitae)

    Thanks; I was able to make a fix on the wp database to get back to the login.

    Everything is there, but now on every time I click on one of the pages it says that it cannot find the index.php file.

    Something is still not working right…

    Thread Starter deusvitae

    (@deusvitae)

    Actually, every time I log in the page goes blank. If I then go back to my original homepage I can get into site admin directly.

    I got index.php figured out by deleting the .htaccess; but the pages still are not showing up.

    Did you try resetting your permalinks switch to default and check your pages and if do work then try switch back to the way you had before that will rewrite .htaccess file.

    Thread Starter deusvitae

    (@deusvitae)

    That seems to do it– when I open the file to view through the WP dashboard, it works, but when I click on my old bookmark it does not show up. Odd.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Major mistake– URL setting wrong’ is closed to new replies.