• chilisky

    (@chilisky)


    I have build 3 sites on subdomains with no issue, but today when I wanted to add number 4 it tells me I have no access to it (all sites have only one user, the admin)
    I have tried different solutions one of them being editing my .htaccess but found out that was not for subdomains but subfolders.
    I cleared caches aso but it is still not working.

    • This topic was modified 8 years ago by chilisky.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Bet Hannon

    (@bethannon1)

    If you haven’t resolved this, can you post your .htaccess contents? Also please post the specific message you get when you can’t access subsite #4.

    Thread Starter chilisky

    (@chilisky)

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    I get a 403 error when trying to access back end on https://testsite.graphiclabs.dk/wp-admin/

    “Forbidden
    You don’t have permission to access /wp-admin/ on this server.
    Apache Server at testsite.graphiclabs.dk Port 80”

    When trying to access frontend, I get a default page from my host
    https://testsite.graphiclabs.dk/

    Moderator Bet Hannon

    (@bethannon1)

    Have you tried deactivating all your plugins to see if this is being caused by a plugin conflict?

    You might also check for any incorrect file permissions.

    Also: you do have wildcard subdomain’s enabled in your hosting, AND you lead the network take care of creating the subdomain (that is, you did NOT manually create a subdomain within your hosting), right?

    Thread Starter chilisky

    (@chilisky)

    I did try to disable every plugin except of the network one and yes, I let WP create the subdomains.
    So, there is a chance that file permission changed?

    Moderator Bet Hannon

    (@bethannon1)

    File permission changes aren’t common, but could happen. Have you checked?

    Have you tried creating another subsite? Maybe it’s just that creating this particular subsite went sideways?

    Thread Starter chilisky

    (@chilisky)

    What files should I check and what permission should they have?
    Yes I have tried creating several new subsites. The testside sub was created to check the exact messages for this thread (after you asked).

    Moderator Bet Hannon

    (@bethannon1)

    Here is some info on it file permissions: https://codex.www.ads-software.com/Changing_File_Permissions

    I did try to disable every plugin except of the network one

    What plugin were you not able to deactivate? I would definitely deactivate all plugins – network and single site and try again.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘no access to new subdomain’ is closed to new replies.