WordPress.org

Forums

Changed the URL in Settings and It crashed Need help (4 posts)

  1. leemichaeljustin
    Member
    Posted 11 months ago #

    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!

  2. Rajat Chodhary
    Member
    Posted 11 months ago #

    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','http://example.com');
    define('WP_SITEURL','http://example.com');

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

  3. leemichaeljustin
    Member
    Posted 11 months ago #

    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 http://www.Example.com/?page_id=3566 but I want that page to be on the main URL at http://www.Example.com

  4. Rajat Chodhary
    Member
    Posted 11 months ago #

    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 http://www.example.com/?page_id=3566 http://www.example.com
    <IfModule>

    I hope you'll find it helpful.

Reply

You must log in to post.

About this Topic