I don’t have a rewrite log that I know of. Nothing in error.log, nothing in my 
debug.log, nothing shows up on console or networking except the 404. If I 
rename the root htaccess, I can pull up the files in the subdirectory. If I 
rename the subdirectory htaccess that has the htpasswd requirement, I still get 
a 404. Weird

 

From: Frank Gingras <[email protected]> 
Sent: Tuesday, March 3, 2026 11:15 AM
To: [email protected]
Subject: Re: [users@httpd] Head scratcher - child htaccess issue

 

 

 

On Tue, Mar 3, 2026 at 10:57 AM <[email protected] <mailto:[email protected]> > 
wrote:

Standard vhost setup on Cpanel for almalinux

Root htaccess:

Options -Indexes 

 

# BEGIN WordPress Multisite

# Using subdomain network type

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

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]

</IfModule>

# END WordPress Multisite

 

From: Yehuda Katz <[email protected] <mailto:[email protected]> > 
Sent: Tuesday, March 3, 2026 9:54 AM
To: [email protected] <mailto:[email protected]> 
Subject: Re: [users@httpd] Head scratcher - child htaccess issue

 

What is in your root directory .htaccess?

What is in your VirtualHost configuration?

 

- Y

 

On Tue, Mar 3, 2026 at 9:25 AM Bball Scout <[email protected] 
<mailto:[email protected]> > wrote:

Wordpress multisite subdomain setup. I can't for the life of me figure out how 
to force apache to allow a child .htaccess for htpasswd authentication in a 
subdirectory of a WP multisite domain. Ie:

 

/ [root WP server with its own .htaccess]

/directory1 [child .htaccess for htpasswd use]

 

Any attempt to display a file in /directory1 apache gives a 404. 

 

I've tried rewrites in the parent .htaccess up the creek to no avail. 

 

Love suggestions.

 

What does the rewrite log say, exactly? 

Reply via email to