• EDIT: Resolved!
    Caching problem ??

    ———————————–
    Hi,

    I have a 2.5.1 WP install on https://www.gjzone.com

    I’m wanting to have separate (non-WP) material on sub-domains, such as demo1.gjzone.com.

    When I go to the sub-domain, I’m being re-directed to the main domain.

    Is this a .htaccess problem that I’ve created? or is this something else?

    I’m not seeing anything in the logs, but I haven’t turned on Debug logging yet either.

    Here’s my (default) .htaccess file that I’m using:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    and my vhost.conf file (Plesk 8.1.1)

    #ServerAlias *.gjzone.com
    <Directory /var/www/vhosts/gjzone.com/httpdocs>
    php_admin_flag engine on
    php_admin_value open_basedir none
    php_admin_flag safe_mode off
    #AllowOverride FileInfo Options
    AllowOverride All
    Options FollowSymLinks
    </Directory>

    Anything pop out screaming that there’s a problem with a quick solution?

    Thanks

    Matt

Viewing 3 replies - 1 through 3 (of 3 total)
  • the serveralias part there in your vhost.conf, would indeed indicate your problem.

    remove the *. from the beginning of that… or preferably, find the correct area in plesk in which to remove wildcard subdomains.

    Thread Starter tazatek

    (@tazatek)

    Thanks for the quick reply… you replied before I could post that I resolved it as a caching issue.

    The ServerAlias was commented out, and I should have not included it in the post.

    Thanks again for taking a peek at it.

    Matt

    I noticed the comment – wasn’t sure if you did that before or after, so I figured I should point it out anyway.

    I will note though, you have plesk for a reason, you should consider using its own subdomaining features, instead of doing things by manually editing conf files.

    This can often confuse your control panel.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘All sub-domains redirecting to main domain – resolved!’ is closed to new replies.