Prevent subdomain redirect to main domain in Wordpress

0

I hope someone can help me.

I have this subdomain: test.anexinet.com

and redirects me to main domain: anexinet.com

this is my .htaccess (of the subdomain)

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

I would like to avoid this redirect, try several codes provided by Wordpress but nothing works, can someone help me?

    
asked by Conejoconsal 14.07.2018 в 00:30
source

1 answer

0

If the following requirements are met, it should work:

  • Have the Wordpress of test.anexinet.com installed in the folder test of public_html
  • Have this code in the .htaccess of the folder test mentioned in point 1:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /test/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /test/index.php [L]
    </IfModule>
    
    # END WordPress
    
  • answered by 14.07.2018 в 06:38