- Help
- Wiki Under the Forum Root
Printable Version
This page has been seen 124,537 times.
-
-
Last updated by on
-
If your wiki and your forum appear in the same folder (e.g. /forums/ and /forums/wiki/), you will need to edit up to 1 .htaccess file.
If you have not already enabled mod_rewrite in the file, you can do so by adding the following line:
Code:RewriteEngine On
The following line should be the directory path relative to your document root. In the case: http://www.example.com/forums/
Code:RewriteBase /forums/
If the value of Wiki PHP File is not 'showwiki', add the following line:
Code:RewriteRule ^FILE.php(.*)?$ showwiki.php$1 [L,QSA]
If you have enabled Simplify Wiki Links, add the following line:
Code:RewriteRule ^showwiki.php?VAR=(.*)$ FILE/$1 [L,R=301]
If you have Simplify Wiki Links enabled, add the following line:
Code:RewriteRule ^FILE/DEFAULT:(.*)$ FILE/$1 [L,R=301]
If Simplify Wiki Links is NOT enabled, add the following line:
Code:RewriteRule ^showwiki.php?VAR=DEFAULT:(.*)$ showwiki.php?VAR=$1 [L,R=301]
If you have Simplify Wiki Links enabled, add the following line:
Code:RewriteRule ^FILE/(.*)?$ showwiki_proxy.php [L,QSA]
Save your .htaccess file, and your wiki URLs should work smoothly.