- Help
- Wiki and Forum in Separate Folders
Return to current revision
Current Revision
August 21, 2009, 10:53 PM
General Differences
- changed the meta description
-
-
If your wiki and your forum appear in different folders (e.g. /forums/ and /wiki/), you will need to edit up to 2 .htaccess files. -
+
If you want wiki and your forum to appear in different folders (e.g. /forums/ and /wiki/), you will need to edit up to 2 .htaccess files.
-
Differences in Content
-
-
If your wiki and your forum appear in different folders (e.g. /forums/ and /wiki/), you will need to edit up to 2 .htaccess files. -
+
If you want wiki and your forum to appear in different folders (e.g. /forums/ and /wiki/), you will need to edit up to 2 [I].htaccess[/I] files. -
-
-
This is only practical if Simplify Wiki Links is enabled. If it isn't use the .htaccess instructions for Wiki Under the Forum Root. -
+
This is only practical if the setting "Simplify Wiki Links" ([HELP]VaultWiki: Server Settings[/HELP]) is enabled. If it isn't, use the [I].htaccess[/I] instructions for [HELP]Wiki Under the Forum Root[/HELP]. -
-
-
Step 1
If you the setting Wiki PHP File is set to 'showwiki', you can skip this step. Otherwise, edit the .htaccess file in your forum root. -
+
[h=3]Step 1[/h]
If you the setting "Wiki PHP File" is set to 'showwiki', you can skip this step. Otherwise, edit the [I].htaccess[/I] file in your forum root. -
-
-
If you have not already enabled mod_rewrite in the file, you can do so by adding the following line: -
+
If you have not already enabled [I]mod_rewrite[/I] in the file, you can do so by adding the following line: -
[code]RewriteEngine On[/code]
Add the following code:
[code]RewriteBase /forums/
RewriteRule ^FILE.php showwiki.php [L,QSA][/code] -
-
Save the .htaccess file. -
+
Save the [I].htaccess[/I] file. -
-
-
Step 2
Edit the .htaccess file in your document root. -
+
[H="3"]Step 2[/H]
Edit the [I].htaccess[/I] file in your document root. -
-
-
If you have not already enabled mod_rewrite in the file, you can do so by adding the following line: -
+
If you have not already enabled [I]mod_rewrite[/I] in the file, you can do so by adding the following line: -
[code]RewriteEngine On[/code]
Add the following code:
[code]RewriteBase /[/code]
Treat PATH as the directory path relative to your document root.
In the case: [url]http://www.example.com/forums/[/url]
PATH is 'forums', with no leading or trailing slash.
-
-
If the value of Wiki PHP File is not 'showwiki', add the following line: -
+
If the value of "Wiki PHP File" is not 'showwiki', add the following line: -
[code]RewriteRule ^PATH/FILE.php(.*)?$ PATH/showwiki.php$1 [L,QSA][/code]
Add the following lines:
[code]RewriteRule ^PATH/showwiki.php?VAR=(.*)$ FILE/$1 [/L,R=301]
RewriteRule ^FILE/DEFAULT:(.*)$ FILE/$1 [L,R=301]
RewriteRule ^FILE/(.*)?$ PATH/showwiki_proxy.php [L,QSA][/code]
-
-
Save your .htaccess file, and your wiki URLs should work smoothly. -
+
Save your [I].htaccess[/I] file, and your wiki URLs should work smoothly.