• Hello,

    Any one can help me,

    I have 2 sites in wordpress one is in root directory which is access through https://www.mydomain.com.
    And the other site which is in subdirectory https://www.mydomain.com/testenv/

    But when i am activate the plugin all-in-one-SEO-pack in root site and subdirectory site and change the permalink as /%postname%/ then the root site is worked fine but the subdirectory site access the root site and both sites are different.

    It is possible to access both site, need to change in .htaccess file.

    Please help me out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ashishk1779

    (@ashishk1779)

    And i am using 2 .htaccess files one is for root directory site and one is for subdirectory site.

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

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

    Any other changes requires

    For the subdirectory site, you may need to do something like this /testenv/%postname% as your permalink structure. Otherwise, the way you have it now, both structures will point to the root of the site.

    deactivate your permalinks to default
    deactivate the AISEO plugin
    now reset and save your permalinks to
    /%postname%/
    test site that it’s working
    now activate AISEO and test

    Thread Starter ashishk1779

    (@ashishk1779)

    Thanks,

    I have tried but not resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘2 sites in same domain (root and subdirectory)’ is closed to new replies.