Exclude folders from htaccess rewrite
-
Hello,
I have a multisite set up here https://dmblogs.ncl.ac.uk/
I’m migrating from an old set up where each student had
home/username, within that they had /blog & /wiki.
the new multisite set up is a dream to manage, but I’m having conflicts.eg I understand site.com/username is a re-direct. but it I need to have site.com/username/wiki as a real folder with a mediawiki install.
I can get this to work, but obviously it breaks site.com/username
Here’s my htaccess
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]Thanks in advance!
- The topic ‘Exclude folders from htaccess rewrite’ is closed to new replies.