I have SSL. HTTP versions of URLs resolve to wiki url instead of redirecting to HTTPS and the actual thread/post
Hi,
Some months ago I added an SSL certificate. I noticed this recently.
If I remove HTTPS:// from thread / post links on my forum and hit enter, the result is that my Wiki page opens.
External links to my forum that have HTTP:// resolve to my wiki page.
If I remove https:// from
Code:
https:/mysite.com/forum/index.php
and hit enter, the resulting URL is:
Code:
https://www.mysite.com/forum/dbseo.php?dbseourl=index.php
That's two ways to get to the same page. My indexed pages have been falling consistently and I'm thinking that this problem may have a lot to do with that?
I'm stumped and would really appreciate your assistance. DBSEO say that there may be a problem related to htaccess but if there is I can't see it.
Content of htaccess public_html:
Code:
ErrorDocument 403 /403.shtml
<IfModule mod_rewrite.c>
RewriteEngine On
#Options -Indexes
Options +FollowSymLinks
#prevent directory browsing#
#redirect forum indexphp to forum#
#end#
#dbseo rules#
#end dbseo rules#
# Force SSL:
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Force www:
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
##vaultwiki
#RewriteRule ^forum/showwiki/(.*)$ forum/showwiki.php?pretty=1 [L]
#RewriteRule '^forum/showwiki\.php\?title=(\w+)$' => 'forum/wiki/$1'
##vbet
#RewriteRule ^forum/(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/$ /forum/ [L,R=301]
#RewriteRule ^forum/(af|sq|ar|hy|az|eu|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|ka|de|el|ht|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|ur|vi|cy|yi)/(.*)?$ /forum/$2 [L,R=301]
#Remove index.php from mysite.com/index.php
#rewrite engine on
#RewriteCond %{THE_REQUEST} index\.php
#RewriteCond %{QUERY_STRING} ^$
#RewriteRule ^index\.php$ / [L,R=301]
# Blocks visitors referred from:
# 1. semalt.com, *.semalt.com
# 2. 7makemoneyonline.com, *.7makemoneyonline.com (semalt)
# 3. buttons-for-website.com, *.buttons-for-website.com
RewriteEngine on
</IfModule>
## Expires
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 3456000 seconds"
ExpiresByType image/jpeg "access plus 3456000 seconds"
ExpiresByType image/png "access plus 3456000 seconds"
ExpiresByType text/css "access plus 3456000 seconds"
ExpiresByType text/javascript "access plus 3456000 seconds"
ExpiresByType application/javascript "access plus 3456000 seconds"
ExpiresByType application/x-javascript "access plus 3456000 seconds"
</ifModule>
## Compression
<IfModule mod_headers.c>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>
</IfModule>
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ ^(.*)$ [R,NC]
RewriteRule .*\.()$ - [F,NC]
RewriteRule .*\.()$ - [F,NC]
Content of htaccess at /forum:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
#DBSEO and Vaultwiki rules:
RewriteCond %{QUERY_STRING} !dbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api\.php|reviewpost/|classifieds/|photopost/|wiki|yui)
RewriteRule ^(.*\.php)$ dbseo.php?dbseourl=$1 [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]
#end DBSEO and vaultwiki rules
#start chrome xss error defeat
<IfModule mod_headers.c>
Header set X-XSS-Protection "0"
</IfModule>
#end chrome xss error defeat
# Force SSL:
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Force www:
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
Config.php:
Code:
<?php
/************************************************************************\
*
* VaultWiki
* Version 4.0.17 Patch Level 1
* License #0B2797C277
*
* Copyright ©2008-2016 Cracked Egg Studios, LLC. All Rights Reserved.
* This file may not be redistributed in whole or significant part.
*
* VAULTWIKI IS NOT FREE SOFTWARE
* [url]https://www.vaultwiki.org/[/url]
* [url]https://www.vaultwiki.org/pages/Info:License-Agreement[/url]
*
\************************************************************************/
if (isset($vbulletin) AND is_object($vbulletin) AND !empty($vbulletin->debug))
{
@ini_set('display_errors', 1);
}
if (!defined('VW_IS_LITE'))
{
define('VW_IS_LITE', false);
}
/**
* You can set the product that VaultWiki is dependent upon.
*/
/* use this line for vBulletin 5 */
//define('VW_DEPENDENCY', 'vB5');
// use this line for vBulletin 4
define('VW_DEPENDENCY', 'vB4|vB3');
define('VW_ERROR_LEVEL', E_ALL & ~E_NOTICE & ~E_STRICT & ~8192);
/* use this line for vBulletin 3 */
//define('VW_DEPENDENCY', 'vB3');
//define('VW_ERROR_LEVEL', E_ALL & ~E_NOTICE & ~E_STRICT & ~8192);
/* use this line for IPB */
//define('VW_DEPENDENCY', 'IPB');
/* use this line for XenForo */
//define('VW_DEPENDENCY', 'XF');
//define('VW_ERROR_LEVEL', E_ALL | E_STRICT & ~8192);
/**
* Some servers will reject requests from the same IP address
* that occur very close together. If your server has this type
* of protection, enter the appropriate delay in milliseconds (ms)
* that VaultWiki's automated processes should wait in between
* requests. *
*/
define('VW_AUTO_DELAY', 0);
/**
* You can define the character set used on VaultWiki pages.
* However, it is not recommended that you change this unless
* absolutely necessary (i.e. for UTF-16 support)
*/
define('VW_CHARSET', 'UTF-8');
/**
* You can enable/disable content caching globally here.
* 1=On
* 0=Off
*/
define('VW_CACHE_ON', 1);
/**
* You can set the prefix that VaultWiki uses to differentiate its
* data from other software when using caches like Memcache or XCache.
*/
define('VW_CACHE_PREFIX', 'vw_');
/**
* You can set the ID of the Admin usergroup. This prevents VaultWiki users
* from ever being promoted to this group.
*/
define('VW_ADMIN_GROUP', 6);
/**
* You can set the ID of the Guest usergroup. This prevents VaultWiki users
* from ever being promoted to this group.
*/
define('VW_GUEST_GROUP', 1);
/**
* You can modify the default script here. The default script is the PHP file
* VaultWiki should try if the incoming URL is not a wiki page.
*/
if (file_exists('dbseo.php'))
{
/**
* Use vBSEO as the default script:
*/
define('VW_DEFAULT_SCRIPT', 'dbseo.php');
}
else if (file_exists('content.php'))
{
/**
* Use the CMS as the default script:
*/
define('VW_DEFAULT_SCRIPT', 'content.php');
}
else
{
/**
* Use the forum as the default script:
*/
define('VW_DEFAULT_SCRIPT', 'forum.php');
}
define('VW_REDIRECT_URL', '/' . VW_DEFAULT_SCRIPT);
/**
* Set the full path to your forum installation here.
* This should only be necessary if VaultWiki can't find it automatically.
*/
//define('VW_DEPOT_PATH', '/path/to/your/forum');
if (!defined('VW_DEPOT_PATH'))
{
$depot_path = realpath(dirname(__FILE__) . '/..');
if (empty($depot_path) OR $depot_path === true)
{
$depot_path = '.';
}
define('VW_DEPOT_PATH', $depot_path);
}
/*======================================================================*\
* Licensed to: [url]http://www.mysite.com/[/url]
\*======================================================================*/