when I click generate for the .htaccess code the only thing that generates is the following
I know that can't be it because it isn't telling anything rewrite stuff.Code:RewriteEngine On RewriteBase /
What am I missing?
when I click generate for the .htaccess code the only thing that generates is the following
I know that can't be it because it isn't telling anything rewrite stuff.Code:RewriteEngine On RewriteBase /
What am I missing?
The Rewrite Generator bases its output on Settings > Options > VaultWiki: Server Settings. If you haven't changed these, then there is no rewrite needed.
- lead developer for VaultWiki
I really want something like this though...
Before - http://www.kordindustries.com/showwi...se_Classics_14
After - http://www.kordindustries.com/wiki/Z...se_Classics_14
This is possible. Before the Rewrite Generator can give you the rules for this, you need to make the necessary changes to Settings > Options > VaultWiki: Server Settings.
Change the Wiki File Name to "wiki", and turn Simple URLs on.
- lead developer for VaultWiki
so when I enable simple URLs it breaks all the links. I get invalid forum.
Not to hijack the thread or anything but I have the same issue. I turned on simplify wiki links and inserted the corresponding code from the re-write generator into my .htaccess file but I am only getting "Invalid Forum specified" errors when navigating to the wiki. I know mod re-write works because I have vbseo installed and working.
Here is the code the re-write generator had me put in my .htaccess file.
Place the following in http://www.mywebsite.org/.htaccess
In order to avoid a potential conflict with vBSEO, you should make the following changes to the same file.Code:RewriteEngine On RewriteBase / RewriteRule ^showwiki.php?title=(.*)$ showwiki/$1 [L,R=301] RewriteRule ^showwiki/Field+Guide:(.*)$ showwiki/$1 [L,R=301] RewriteRule ^showwiki$ showwiki/ [L,QSA,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^showwiki/(.*)?$ showwiki_proxy.php [L,QSA]
Find
ReplaceCode:RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
Code:RewriteCond %{REQUEST_URI} !showwiki_proxy.php RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
Maybe there is something simple we are missing to get this to work properly?
If you are getting invalid forum specified, then vBSEO is still hijacking the URLs. The first code box you posted should be placed above ALL rules that point to vBSEO.
- lead developer for VaultWiki
Totally confused now. My "generate" doesn't give me anything, but what I posted initially. I too have vbseo installed on my site. Any other ideas?
Like I've said, you need to change VaultWiki: Server Settings to your desired settings before you run the generator. Yes, this will break all links, because your server doesn't have the rewrite rules for the settings you entered. After changing the settings, go to the generator, and it will give you the rules to fix the links.
- lead developer for VaultWiki
Man, I'm so close to getting this! Really wish I knew more about .htaccess. I had a really hard time getting vbseo working the way I wanted because .htaccess was giving me trouble. Anyhow, I moved the vaultwiki rewrite rules above all the vbseo rules as you said. I can now acces my wiki. I can see the special pages and books and categories, but now when I try to go to a specific page I get a 500 server error.
For instance, I can now see http://www.pwckitsap.org/showwiki/Special:Allpages but when I click on one of the pages listed, I get the error.
Here is my .htaccess. Maybe you can see what I've done wrong?
Code:# Comment the following line (add '#' at the beginning) # to disable mod_rewrite functions. # Please note: you still need to disable the hack in # the vBSEO control panel to stop url rewrites. RewriteEngine On # Some servers require the Rewritebase directive to be # enabled (remove '#' at the beginning to activate) # Please note: when enabled, you must include the path # to your root vB folder (i.e. RewriteBase /forums/) RewriteBase / Options -MultiViews RewriteRule ^showwiki.php?title=(.*)$ showwiki/$1 [L,R=301] RewriteRule ^showwiki/Field-Guide:(.*)$ showwiki/$1 [L,R=301] RewriteRule ^showwiki$ showwiki/ [L,QSA,R=301] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^showwiki/(.*)?$ showwiki_proxy.php [L,QSA] #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301] RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap) RewriteCond %{REQUEST_URI} !showwiki_proxy.php RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/ RewriteRule ^(.+)$ vbseo.php [L,QSA] RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
If you recently changed the encoding for Space characters via the VaultWiki: Server Settings menu, go to AdminCP > VaultWiki > Wiki URL Manager > Rebuild All URLs.
- lead developer for VaultWiki
Tried that, but no luck. Any other ideas?
When you create a new page, do you also get a 500 error after it's saved?
- lead developer for VaultWiki
I just tried and yes I get the 500 error when it saves. I can see that it saved in showwiki/Special:Newpages. I can't seem to access the Book or wiki namespaces either. Only the special pages.
I also tried turning off the vbseo plugin temporarily. VW seems to work OK when vbseo is turned off.
With the plugin turned back on, I tried turning off only the forum redirect part of vbseo and I still get the error. I'm guessing there is something funny with htaccess still?
For the part:
Does it make a difference if you use:Code:RewriteCond %{REQUEST_URI} !showwiki_proxy.php
Code:RewriteCond %{REQUEST_FILENAME} !showwiki_proxy.php
- lead developer for VaultWiki
Bookmarks