Forums

I deleted my webpage (4 posts)

  1. strousst
    Member
    Posted 1 year ago #

    I was in the settings part of my admin panel, and I tried to get rid of the "wordpress" part of my web address. Now, my webpage doesn't exist? It will come up with my address/wordpress, but the structure is gone. I can't log in, either. site.com/wordpress/wp-admin is not found. Please help!!!

  2. govpatel
    Member
    Posted 1 year ago #

    you will have reset urls in Settings General

    follow this steps

    If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

    1. 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.

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

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

    Use your own URL instead of example.com, obviously.

    3. Upload the file back to your site, in the same location. FileZilla offers a handy "edit file" function to do all of the above rapidly; if you can use that, do so.

    4. Load the login or admin page a couple of times. The site should come back up.

    5. 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.

    once you got your website back and you still want to change your urls then you can change the both urls but do not try to go on your website as you will get error.

    Log into ftp or server and move all files and folders from wordpress folder to root and then go on your website.

    You will need to go in permalinks and reset your permalinks.

  3. Samuel B
    moderator
    Posted 1 year ago #

  4. strousst
    Member
    Posted 1 year ago #

    I followed the FTP guidelines, and it worked. Thank you so much for your help! I was definitely panicking for a while....

Topic Closed

This topic has been closed to new replies.

About this Topic