• Hi .. I had installed WordPress into the root folder.
    Now I want to install word press in a subfolder .. let us say /rd
    But I do not want URL to change to subfolder. That is I would like to use the previous URl ( https://rynekdigital.com) to be used .

    So I have tried the below section from the worpress support link :

    I have tried the Method I (Without URL change)

    https://www.ads-software.com/support/article/giving-wordpress-its-own-directory/#method-i-without-url-change

    SO I have moved ALL Files (
    including hidden files such as .htaccess) into the subdirectory (/rd)

    Next I have created a new .htaccess file in the parent directory ( public.html)
    This .htaccess file in parent directory reads as below:
    ———————–

    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
    RewriteCond %{REQUEST_URI} !^/rd/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /rd/$1
    RewriteCond %{HTTP_HOST} ^(www.)?rynekdigital.com$
    RewriteRule ^(/)?$ rd/index.php [L] 
    
    </IfModule>
    
    # END WordPress
    
    # php -- BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php74” package as the default “PHP” programming language.
    <IfModule mime_module>
      AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
    </IfModule>
    # php -- END cPanel-generated handler, do not edit

    ————————————————–

    The site is UP.
    But now the issue is I cannot login to the WP Admin Dashboard.
    (Is this because I have 2 htaccess file ? Have tried renaming the old .htaccess file under the subdirectory now into something else; but it didn’t help )

    I am trying to login at:
    https://rynekdigital.com/wp-admin

    which does an automatic redirect to :
    https://rynekdigital.com/wp-login.php?redirect_to=https%3A%2F%2Frynekdigital.com%2Frd%2Fwp-admin%2F&reauth=1

    I am getting the login screen but my password is no more recognized. Strangely I am NOT getting a wrong password prompt either ( This error prompt screen I am getting if I use an unrelated or totally wrong password).

    Thus it means my passsword is right, but it does not log in.

    Can some please help.
    Thanks in advance.
    Samit

    • This topic was modified 2 years, 8 months ago by Samit.
    • This topic was modified 2 years, 8 months ago by Samit.
    • This topic was modified 2 years, 8 months ago by Samit.
    • This topic was modified 2 years, 8 months ago by Samit.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Samit

    (@samitb)

    I have tried resetting the password.
    I am abe to create a new password and Log in .. but once the session is expired or I close the window, I am not able to log in using the new password though a new session or window.
    Please help.

    • This reply was modified 2 years, 8 months ago by Samit.

    HI Samit,

    I would either restore from a backup OR restore from the hosts automated backup. This doesn’t rectify the issue but it allows you to rollback and plan ahead / work on a staging site, on a totally seperate domain.

    I would use Updraft & Duplicator to do the backups moving forward.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with logging into WordPress Dashboard after moving files to Sub Directory’ is closed to new replies.