WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Modifying .htaccess file??

[Resolved] Modifying .htaccess file??

  • sanjaymistry

    @sanjaymistry

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • deepbevel

    @deepbevel

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

    Christine Rondeau

    @crondeau

    Volunteer Forum Moderator

    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

    I know, it was a silly error!

    All fixed now though; thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Modifying .htaccess file??’ is closed to new replies.
Skip to toolbar