• Resolved sralli

    (@sralli)


    HI There

    I have read almost 1000 tutorials and post in the past week to solve this problem but I still cant figure out why links to my sub directory dont work (login and logout)

    As as example if I go to evictionuk.com/affiliates/wp-login

    and login successfully a blank page is generated but if I try to login on the main site evictionuk.com it works fine – no problems at all.

    I can even access the dashboard of the subdirectory via the network admin area but I cant if I try evictionuk.com/affiliates/wp-login

    The same error occurs If I try logging out via the dashboard when on evictionuk.com/affiliates/.

    I guess its something to do with htaccess but I dont understand what all I have done is enabled multisite on my wordpress installation and followed the instructions

Viewing 6 replies - 1 through 6 (of 6 total)
  • Could you post the contents of your .htaccess and give a little info as to host, OS, etc.

    Thread Starter sralli

    (@sralli)

    Hi Jsing

    Thanks for your reply.

    I have contacted my host and they suggested i use subdomain instead so i have done a fresh install and now my subdomains pages arent found so I have asked them to look at this

    I will keep you guys up to date. Just a question though do you need to create a folder for subdomains to map to it?

    so if it was

    affiliates.evictionuk.com would i have to create a subfolder called affiliates and add wp-admin, wp-content and wp-include files within these folders?

    thanks for all your help

    No, you do not need a physical folder on the server – that;s the whle point of multisite, to have one codebase.

    The white page you saw was a PHP error.

    Thread Starter sralli

    (@sralli)

    HI Andrea_r

    thanks for your response

    would the php error occur because of my htaccess file?

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

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

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

    # END WordPress

    Reason I ask is the main site works perfectly its just the subdomain. As far as I can see everything revolves around the htaccess file so it must be something to do with that right?

    thanks for all your help

    No. ?? The htaccess looks fine.

    Find your error logs and read them. If you have network activated plugins they may be interfering as well. Or it could be the theme itself. Did you remove the default theme?

    Thread Starter sralli

    (@sralli)

    Hi Andrea_r

    thanks for replying

    I figured out the problem – it was my theme – I changed the theme and it seems to have been working fine now

    thanks for all your help and support

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Links dont work on subdirectories but work fine on main site’ is closed to new replies.