.htaccess file
-
I have set up WordPress Multisite on my site by editign teh wp-config.php file and addign this code as instructed;
define(‘WP_ALLOW_MULTISITE’, true);
Then I added the code provided in the instruction but deleted the above code. Is that supposed to be left in as well, when addign the new code? (I deleted it before adding the new code)
The SuperAdmin now appears at the top of my dashboard.)
Re: .htacess file
The instructions are telling me to edit the .htacces file by adding this code: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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]Do I have to manually create an .htacess file and place it in the root directory?
I tried creating a file called htacess.txt, then uploaded it, then changed the name to .htacess but then my site became non-functional.
I’m not sure if it matters but I also changed the permalinks to a custom setting of: /blog/%postname%/
Any help would be appreciated.
- The topic ‘.htaccess file’ is closed to new replies.