About the author

Related Articles

3 Comments

  1. 1
    Flanagan

    Flanagan Khumbula

    I fixed by changing all file permissions in wp-admin from 777 to 644, folders 755. Check your permissions

    Reply
  2. 2
    jpg0002@email.null'

    jpg0002

    I was able to solve this by simplifying my sites-available configurations. This is what I used:

    <VirtualHost *:80>
        ServerName     example.org
        ServerAlias    example.com
        ServerAlias    example.net
        DocumentRoot  /var/www/example.org/site
    
        DirectoryIndex  index.php index.html
    
        <Directory /var/www/example.org/site>
            Options Indexes FollowSymLinks ExecCGI
            AllowOverride All
            Require all granted
        </Directory>
    
        ErrorLog  ${APACHE_LOG_DIR}/example_error.log
        CustomLog ${APACHE_LOG_DIR}/example_access.log combined
    
    </VirtualHost>
    

    And now there is no redirect when accessing wp-admin!

    Reply
  3. 3
    Samuel@email.null'

    Samuel

    OK lets try some stuff here:

    1. Why do you have siteurl http://example.com/site in your DB when ServerName www.example.com ? If site folder is like public it should not be accessible by URI. So your ‘site URI’ and ‘home’ should be http://example.com

    2. Are you’re trying to rewrite http to https here:

      RewriteCond %{HTTP_HOST} ^example.com
      RewriteRule ^(.*)$ https://www.example.com%{REQUEST_URI} [R=301,L]

    Why? Could you please remove it and then check ?

    If it doesn’t helps, please check apache error.log and print here the output.

    Thanks

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2017 SolutionMmyself.com