Quote:
Originally Posted by Jaxel
I actually tried that... but it didn't fix anything, so I had to uninstall this mod.
Code:
Options +FollowSymLinks
RewriteEngine On
#### vBulletin
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images|w|wiki)/
RewriteRule ^(.*)$ $1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ yabbseo.php?bbseourl=$1&%{QUERY_STRING} [L]
#### MediaWiki
RewriteRule ^wiki/index.php/(.*)$ /wiki/$1 [R,L]
RewriteRule ^wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ /w/index.php [L,QSA]
#### Charset
AddDefaultCharset Off
#### Gzip
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*)(js|css)$ redirect.php?file=$1$2&type=$2 [L]
</IfModule>
#### ETags
FileETag None
#### Expires
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
ExpiresByType application/x-shockwave-flash A2592000
ExpiresByType text/css A2592000
ExpiresByType application/x-javascript A2592000
</IfModule>
The problem is that I am using this bridge: and while your mod works fine searching for the "forum/yabbseo" folder, it cant find "forum/wiki/yabbseo" folder... since it doesnt exist. The URL to the yabbseo folder should be absolute, not relative.
https://vborg.vbsupport.ru/showthread.php?t=191186
|
Try to arrange your code :
Code:
#### vBulletin
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images|w|wiki)/
RewriteRule ^(.*)$ $1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ yabbseo.php?bbseourl=$1&%{QUERY_STRING} [L]
#### MediaWiki
RewriteRule ^wiki/index.php/(.*)$ /wiki/$1 [R,L]
RewriteRule ^wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ /w/index.php [L,QSA]
like this
Code:
#### MediaWiki
RewriteRule ^wiki/index.php/(.*)$ /wiki/$1 [R,L]
RewriteRule ^wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ /w/index.php [L,QSA]
#### vBulletin
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images|w|wiki)/
RewriteRule ^(.*)$ $1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ yabbseo.php?bbseourl=$1&%{QUERY_STRING} [L]