• Hi everyone, I created wild card for my main domain. When going into WordPress I have a problem after creating my subdomain. I click on the dashboard of subdomain and get taken to a 404 error page. I have a feeling my htaccess file is incorrect. When wordpress tells me to put the following code in does it mean i must overwrite whatever is in the htaccess or add it to the end. in which case where at the end? I now have nearly one and a half pages of coding in my htaccess. Please please can someone help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • yes you have to erase the .htaccess file and copy paste the code you got when creating the network.
    it looks like this:(only this code)

    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]
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    When wordpress tells me to put the following code in does it mean i must overwrite whatever is in the htaccess or add it to the end. in which case where at the end?

    Give that WordPress actually uses the word ‘replace’ in bold, yes, you REPLACE the content 🙂

    (I know it’s bold cause I wrote that line)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mutisite Sub Domains htaccess’ is closed to new replies.