Multisite setup .htaccess question.
-
When setting up a multisite installation I was presented with code to add to wp-config.ph as well as code to modify the .htaccess file.
I’m prompted to “Add the following to your .htaccess file in {site path on server removed} , replacing other WordPress rules:”
In the .htaccess file there was already the following:
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and # "END WordPress" are dynamically generated, and should # only be modified via WordPress filters. Any changes to # the directives between these markers will be # overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Do I (A) replace ALL of this including the comments “# BEGIN WordPress” and ending with “/IfModule”?
or do I (B) only relace the section with the code beginning with “IfModule mod” and ending with “/IfModule”?
fwiw the multisite installation seems to be working fine, so perhaps replacing everything as per (A) was the correct thing to do.
Thanks to anyone who can confirm I did the correct thing.
Russell
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.