• Resolved earthdog

    (@earthdog)


    Hi!

    -Fresh install on a bluehost shared account
    -I have read the document with the proposed solutions. Nothing worked.

    When i hit: https://www.mydomain.com/wp-admin i get:

    https://www.mydomain.com/wp-login.php?redirect_to=http%3A%2F%2Fwww.mydomain.com%2Fmydomain-com%2Fwww%2Fwp-admin%2F&reauth=1

    it seems that it redirects me to the real subdirectory where my domain has the files. To achieve this my provider instructed to use this htaccess on the root of my accounts directory:

    # Use PHP5.3 Single php.ini as default
    AddHandler application/x-httpd-php53s .php
    
    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
    RewriteCond %{REQUEST_URI} !^/mydomain-com/www/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /mydomain-com/www/$1
    RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
    RewriteRule ^(/)?$ mydomain-com/www/index.php [L]

    any ideas?

Viewing 1 replies (of 1 total)
  • Thread Starter earthdog

    (@earthdog)

    I found the solution here

    The important stuff:

    Just below the line containing “RewriteEngine on”:

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ /wp-admin/ [R=301,L]
Viewing 1 replies (of 1 total)
  • The topic ‘Cant login to dashboard’ is closed to new replies.