• Hey,

    I know this is a common problem but all the other threads are really confusing. I am new to wordpress and am not that familiar with coding. I need someone to explain it in a easy straight forward manner.

    I had installed a theme i purchased and started working on it. I acidently changed the URL under settings and hit save. The site crashed and I have no access to the Admin page to change it back. I am running on a GO DADDY server and hosting.

    Could someone walk me through how to restore the wordpress site without losing everything?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well,
    I suppose you have a FTP program installed (like filezilla) depending on your Operating system. All you need to go to root directory of your website using your server login credentials, and find a file name wp-config.php.
    Download this file on your desktop, and open with any text-editor (like notepad or textmate).
    At the bottom of that file, you will find a line which says:
    /* That's all, stop editing! Happy blogging. */

    add these two line, and make change in URL from example.com to YOURURL.COM (depending upon your amendments)

    define('WP_HOME','https://example.com');
    define('WP_SITEURL','https://example.com');

    Once you logged in your dashboard, go to settings > Permalinks and click save changes.

    Thread Starter leemichaeljustin

    (@leemichaeljustin)

    Hey Rajat,

    It all worked! Thanks again.

    Do you know how I can redirect my landing page to the main URL.

    For example I have a parallax one pager on https://www.Example.com/?page_id=3566 but I want that page to be on the main URL at https://www.Example.com

    Well,
    I think that you want to redirect your landing page to your homepage. Best way I is using .htaccess file, which resides in root of your website server (i.e. /public_html/). It may also contain some previous rules which is used for WordPress.

    Now, you have solved your previous problem. I assume that you are well versed with FTP by now. All you need to download .htaccess file on your desktop, and rename it something like .htaccess to htaccess.backup (So, in case you stuck or breakdown situation. You have something to put back).

    Now, Open in any text-editor, and make some following changes and upload back to root of your website, and overwrite the previous one.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    
    # You may omitt check for mod_rewrite if you want.
    # But, It is a best practice, and I follow it too.
    <IfModule mod_rewrite.c>
    # Redirect One link to Another link
    Redirect https://www.example.com/?page_id=3566 https://www.example.com
    <IfModule>

    I hope you’ll find it helpful.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changed the URL in Settings and It crashed Need help’ is closed to new replies.