Forums

[resolved] lockedout from wordpress due to incorrect URL rewrite (4 posts)

  1. Yalla-one
    Member
    Posted 2 years ago #

    Hello - on the main page of the system settings in WordPress 2.8.4 I managed to type an incorrect URL (port 808 instead of port 80) where you type the address for the blog and website.

    Thus I am ofcourse locked out of WordPress and cannot set it back. I tried turning off mod_rewrite in apache but that did not help.
    Also noticed that the wp_config.php does not contain any such settings, so I guess it's buried deep within MySQL somewhere.

    Can someone please point me towards a way to reset this, so that I can get access to both my site and especially the admin panel again? Thanks!

  2. iridiax
    Member
    Posted 2 years ago #

  3. Yalla-one
    Member
    Posted 2 years ago #

    Thank you - that did the trick!

  4. petedrover
    Member
    Posted 2 years ago #

    From that link, I used this advice, and it worked immediately.
    Thanks!
    -------------------------------------------------------------

    Edit wp-config.php
    It should be possible to fix the site URL using a new feature -

    Add these two lines to your wp-config.php, where "example.com" is the NEW location of your site.

    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');
    That should be it. If it worked, stop reading this page now.

    Thanks filosofo for the fix, implemented in 2.2.

Topic Closed

This topic has been closed to new replies.

About this Topic