htaccess and login domains (1 post)

  1. dpnow
    Posted 4 years ago #

    hallo and good morning, i found this post very useful.
    so I hope someone could help me.
    I have this problem: want to install wordpress on a reseller domain.
    the problem is that in the htaccess i have to add those line, to make the login page for domains works:
    # This is the code that handles login., cpanel., and webmail.
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^login\. [NC,OR]
    RewriteCond %{HTTP_HOST} ^cpanel\. [NC,OR]
    RewriteCond %{HTTP_HOST} ^webmail\. [NC]
    RewriteCond %{REQUEST_URI} !^/(cgi-sys|rhost_login)
    RewriteRule ^(.*)$ /cgi-sys/login.cgi [NC,L]

    added these lines the login page works only if I remove the line

    RewriteRule . /index.php [L]

    oherwise does not work.
    but if login works, wordpress does not. i can see only the home page and nothing else.

    someone has any suggestion?

Topic Closed

This topic has been closed to new replies.

About this Topic