diff options
-rw-r--r-- | modules/phpbb/templates/forums_vhost.conf | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/phpbb/templates/forums_vhost.conf b/modules/phpbb/templates/forums_vhost.conf index bb2721e9..995f1f70 100644 --- a/modules/phpbb/templates/forums_vhost.conf +++ b/modules/phpbb/templates/forums_vhost.conf @@ -1,12 +1,16 @@ # TODO redirect based on language settings # and the presence of the forum - Redirect / /en/ + + # using Redirect create a loop, so we use mod_rewrite here + RewriteEngine On + RewriteRule ^/$ /en/ [R] + AliasMatch ^/(..)/(.*) <%= forums_dir %>/$1/phpBB/$2 - <Directory <%= forums_dir %>/.*/phpBB/> + <Directory ~ "<%= forums_dir %>/.*/phpBB/"> Allow from all </Directory> - <Directory <%= forums_dir %>/.*/phpBB/install/> + <Directory ~ "<%= forums_dir %>/.*/phpBB/install/"> Deny from all </Directory> |