-
Dbseo and ValutWiki
I have installed Vaultwiki in vbseo it's all ok
I have installed in dbseo Vaultwiki does not work. When I click on wiki_index.php me page not found
I have:
Modified my .htaccess adding "|wiki|yui"
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
# If you are having problem with "None Could Be Negotiated" errors in Apache, uncomment this to turn off MultiViews
# Options -MultiViews
RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api|\.php|reviewpost/|classifieds/|photopost/|wiki|yui)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images|reviewpost|classifieds|photopost)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]
</ifmodule>
If uncomment this part the forum generate error 404
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images|reviewpost|classifieds|photopost)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]
In config.php i have modified:
Code:
if (file_exists('dbseo.php'))
{
/**
* Use vBSEO as the default script:
*/
define('VW_DEFAULT_SCRIPT', 'dbseo.php');
}
My forum it's in mysite.it/forum and Valut its' in mysyte.it/forum/vault
I know where I wrong? I repeated the operation many times following your guide :-(
-
Where are the wiki rewrite rules? According to the snippet you pasted they are missing entirely. Please see the Apache section of our section for the lines you have to add.
Also, according to the guide, you should have removed this section:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images|reviewpost|classifieds|photopost)/
RewriteRule ^(.+)$ dbseo.php [L,QSA]
Or worded it so that 'dbseo.php' is replaced by 'wiki_index.php'
-
Hi pegasus
In my htaccess i have add only |wiki|yui
Rules for apache are all disabled
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# If filename is not 'wiki_index', replace WIKI_FILE and uncomment the following line (skip this for XenForo)
# RewriteRule ^WIKI_FILE.php wiki_index.php [L,QSA]
# If URL format is /wiki/path uncomment the following line
#RewriteRule ^yui-combo/([^/]+)/(.+)$ yui_loader.php?v=$1&f=$2 [L,QSA]
# If URL format is /wiki/path or replaces a catch-all rule, uncomment the following 3 lines (skip this for XenForo)
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)?$ wiki_index.php [L,QSA]
# If you are having problem with "None Could Be Negotiated" errors in Apache, uncomment this to turn off MultiViews
#Options -MultiViews
RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api|\.php|reviewpost/|classifieds/|photopost/|wiki|yui)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images|reviewpost|classifieds|photopost)/
#RewriteRule ^(.+)$ dbseo.php [L,QSA]
</ifmodule>
My installation it's www.mysite/forum/
And Wiki index it's standard files: wiki_index.php
If i disabled this, forum generate error 404. If enabled forum works but vaultwiki not work
Code:
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images|reviewpost|classifieds|photopost)/
#RewriteRule ^(.+)$ dbseo.php [L,QSA]
where am I wrong?
-
You should have this:
Code:
# If URL format is /wiki/path uncomment the following line
RewriteRule ^yui-combo/([^/]+)/(.+)$ yui_loader.php?v=$1&f=$2 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images|reviewpost|classifieds|photopost)/
RewriteRule ^(.*)?$ wiki_index.php [L,QSA]
-
Works...
The error was add in my .htaccess this string
Removed. All ok
-
I plan to use DBseo on top a vaultwiki installation plain installation
Should I add the code as posted?
Quote:
Originally Posted by
pegasus
You should have this:
Code:
# If URL format is /wiki/path uncomment the following line
RewriteRule ^yui-combo/([^/]+)/(.+)$ yui_loader.php?v=$1&f=$2 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|images|reviewpost|classifieds|photopost)/
RewriteRule ^(.*)?$ wiki_index.php [L,QSA]
-
Yes, you should use wiki_index.php instead of dbseo.php in the rewrite urles as you have quoted above, and set dbseo.php as the DEFAULT_SCRIPT in vault/config.php too.
-
Thanks for your reply, I'll try
-
Hello
I'm also using dbseo
I want my wiki urls to look something like this:
/Wiki/Angelic-Saga
But instead it looks like this
/wiki_index/Wiki-Pages/Angelic-Saga
Is there a way to fix the urls to how I want them? I'm not all that familiar with rewriting these things.
-
If your rewrites are already working and like above there are no separate wiki rules (the words dbseo.php were replaced by wiki_index.php), then all you should need to do is:
1. Change the Filename of the Wiki PHP File in the Site Config settings.
2. You do not rename the file at all.
3. Uncomment or add the rewrite rule:
Code:
RewriteRule ^WIKI_FILE.php wiki_index.php [L,QSA]
So that:
Code:
RewriteRule ^wiki.php wiki_index.php [L,QSA]
And that should be it.
-
Just to add to that, it may be necessary to go to Maintenance -> URL counters, and "Rebuild Content URLs". This was the reason it wasn't working for me.
-
Yes, VaultWiki uses a cron job to rebuild those counters automatically after a setting change, but it is not triggered until the next minute after making the change. Also if you have a lot of wiki URLs already, it might take several minutes more to rebuild them in the background like this. It is also possible that other jobs are already scheduled before it.
So if you have a lot of articles or there are already other tasks, the Maintenance route you mentioned may be the best option. I think we should put this explanation back in the description for the related settings. It was there when Maintenance was required, but we took it out when the cron job was added.