[wp-trac] [WordPress Trac] #31664: Multisite network setup for .htaccess
WordPress Trac
noreply at wordpress.org
Tue Mar 17 09:11:17 UTC 2015
#31664: Multisite network setup for .htaccess
--------------------------------+------------------------------
Reporter: wph4 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version: 4.1.1
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> Hi there,
>
> Sorry if this is not the correct place to post it. But I donot know where
> then.....
>
> I have 2 multisite installations that were not working.
> Dashboard for the Primary site was working. Trying to go to the dashboard
> for the other sites gave an error code or a loop message. And the other
> sites where not shown under "My sites" (hover function). I was able to
> have a look at the child site but it had no theme it was just a "sitemap"
> list.
>
> What did I wrong? I thougt....
>
> Here what I did:
>
> ================ 1st installation (localhost using XAMPP)
> - install wp 4.1.1
> - change config.php to multisite
> - Copy andPaste "Network setup" from Dashboard. Here is the "problem",
> the .htaccess here shows:
>
> RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
> D:/Programs/xampp/htdocs/H4Net/$2 [L]
> RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$
> D:/Programs/xampp/htdocs/H4Net/$2 [L]
>
> After a long researching, I have found an advice from a long time ago and
> applied. The advise where to change these 2 lines to:
>
> RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) /H4Net/$2
> [L]
> RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ /H4Net/$2 [L]
>
> After this change it works.
>
> ================ 2nd installation web based hosting
> - install wp 4.1.1
> - change config.php to multisite
> - Copy andPaste "Network setup" from Dashboard. Here is "again" the
> "problem", the .htaccess here shows:
>
> RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
> sites/MYURL/$2 [L]
> RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ sites/MYURL/$2 [L]
>
> The solution I found is to change it to:
>
> RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
> RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
>
> ================================================
>
> My request is:
>
> Althought I have seen it was already asked some time ago, Network setup
> still doesnot come up with the correct .htaccess information.
> When installing I do follow instructions given. This was the issue.....
>
> I am not a technical person, far from that. I am good in copy and paste
> :-)
> I have seen / read a lot of people are the same as I am, or have the same
> issue as I had.
> So if you could please change it in the next update it would help a lot!
>
> BTW Thanks a lot for making wordpress available!!!!!
>
> Cheers,
> Helena
> PS: sure I can give screenshots of more info if needed.
New description:
Hi there,
Sorry if this is not the correct place to post it. But I donot know where
then.....
I have 2 multisite installations that were not working.
Dashboard for the Primary site was working. Trying to go to the dashboard
for the other sites gave an error code or a loop message. And the other
sites where not shown under "My sites" (hover function). I was able to
have a look at the child site but it had no theme it was just a "sitemap"
list.
What did I wrong? I thougt....
Here what I did:
================ 1st installation (localhost using XAMPP)
- install wp 4.1.1
- change config.php to multisite
- Copy andPaste "Network setup" from Dashboard. Here is the "problem", the
.htaccess here shows:
{{{
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
D:/Programs/xampp/htdocs/H4Net/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$
D:/Programs/xampp/htdocs/H4Net/$2 [L]
}}}
After a long researching, I have found an advice from a long time ago and
applied. The advise where to change these 2 lines to:
{{{
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) /H4Net/$2
[L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ /H4Net/$2 [L]
}}}
After this change it works.
================ 2nd installation web based hosting
- install wp 4.1.1
- change config.php to multisite
- Copy andPaste "Network setup" from Dashboard. Here is "again" the
"problem", the .htaccess here shows:
{{{
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)
sites/MYURL/$2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ sites/MYURL/$2 [L]
}}}
The solution I found is to change it to:
{{{
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
}}}
================================================
My request is:
Althought I have seen it was already asked some time ago, Network setup
still doesnot come up with the correct .htaccess information.
When installing I do follow instructions given. This was the issue.....
I am not a technical person, far from that. I am good in copy and paste
:-)
I have seen / read a lot of people are the same as I am, or have the same
issue as I had.
So if you could please change it in the next update it would help a lot!
BTW Thanks a lot for making wordpress available!!!!!
Cheers,
Helena
PS: sure I can give screenshots of more info if needed.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31664#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list