WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Modifying .htaccess file?? (4 posts)

  1. sanjaymistry
    Member
    Posted 1 year ago #

    Hello,

    I am a first-time WP user and seemed to have fudged access to my WP admin. I have installed it on the root and clumsily changed the site within settings to sanjaymistry/new (and saved changes). However, when I try and login into my WP admin on the root at [website].com/wp-admin, the error message says:

    The requested URL /new/wp-login.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    My .htaccess file, which may indeed now be a mess reads:

    # 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

    Would to great if somebody could tell me where I'm going wrong with this elementary error!

    Thank you!

  2. deepbevel
    Member
    Posted 1 year ago #

    you'll find info here on how to modify files on your server to get your site back

  3. I have installed it on the root and clumsily changed the site within settings to sanjaymistry/new (and saved changes).

    If you installed WordPress in the root, why did you change the settings to sanjaymistry/new ?

    I think that you'll need to revert those settings back in your phpMyAdmin so that you can login at sanjaymistry.com/wp-admin

  4. sanjaymistry
    Member
    Posted 1 year ago #

    I know, it was a silly error!

    All fixed now though; thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.