vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   The message of "Page not found" on the homepage (https://vborg.vbsupport.ru/showthread.php?t=321005)

Dave 12-09-2015 08:09 AM

So even when you upload the original forum.php and index.php file, the same problem is happening?
Definitely a bad plugin/hook or .htaccess file.

SWSUSA 12-09-2015 09:24 AM

Quote:

Originally Posted by Dave (Post 2560031)
So even when you upload the original forum.php and index.php file, the same problem is happening?

Yes. Да.

Quote:

Originally Posted by Dave (Post 2560031)
Definitely a bad plugin/hook or .htaccess file.

I assume that it because of settings of the web server or because of one of the established spendthrifts.

Я предполагаю, что это из-за настроек веб-сервера или из-за одного из установленных модов.

--------------- Added [DATE]1449667976[/DATE] at [TIME]1449667976[/TIME] ---------------

I solved a problem. It because of a code in the .htaccess file.
With such code the site ceased to open:

Решил проблему. Это из-за кода в файле .htaccess.
С таким кодом сайт перестал открываться:

Code:

# Block User-agent Libwww-perl
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* – [F,L]

<IfModule mod_rewrite.c>
        RewriteEngine On

        # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
        # RewriteBase /

        # If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
        # Options -MultiViews

        RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api\.php|reviewpost/|classifieds/|photopost/)
        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>

# proc/self/environ? no way!
RewriteCond %{QUERY_STRING} proc/self/environ [OR]
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})

With such code the site opens:
С таким кодом сайт открывается:
Code:

# Block User-agent Libwww-perl
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* – [F,L]

# proc/self/environ? no way!
RewriteCond %{QUERY_STRING} proc/self/environ [OR]
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})

<IfModule mod_rewrite.c>
        RewriteEngine On

        # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory.
        # RewriteBase /

        # If you are having problems with the rewrite from content/ to content.php, uncomment this line to turn MultiViews off.
        # Options -MultiViews

        RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api\.php|reviewpost/|classifieds/|photopost/)
        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>

The part of this code is necessary for fashion [DBTech] of DragonByte SEO v2 (vB4). Though itself fashions at me it is switched off.
Часть этого кода нужна для мода [DBTech] DragonByte SEO v2 (vB4). Хотя сам мод у меня выключен.

The part of this code optimizes a forum, increasing the speed of loading of pages.
Часть этого кода оптимизирует форум, увеличивая скорость загрузки страниц.

Dragonsys 12-09-2015 05:49 PM

glad you got it figured out, but did you not tell us that you didn't make any changes, it just suddenly started happening? If you had told us about the changes made to .htaccess we could have figured it out sooner ;)

SWSUSA 12-10-2015 12:40 AM

Quote:

Originally Posted by Dragonsys (Post 2560058)
glad you got it figured out, but did you not tell us that you didn't make any changes, it just suddenly started happening? If you had told us about the changes made to .htaccess we could have figured it out sooner ;)

I did changes in the .htaccess file 5 months ago.
Изменения в файле .htaccess я делал 5 месяцев назад.

I think that the company the owner of a hosting made some changes on a hosting though they also won't confess in it. I saw on a hosting there were new functions and new folders, just that day when my site ceased to open. And this code in the .htaccess file ceased to work normally.
Я думаю, что компания владелец хостинга внесла какие-то изменения на хостинге, хотя они и не сознаются в этом. Я видел на хостинге появились новые функции и новые папки, как раз в тот день, когда мой сайт перестал открываться. И этот код в файле .htaccess перестал нормально работать.

Dragonsys 12-10-2015 12:50 AM

Quote:

Originally Posted by SWSUSA (Post 2560077)
I did changes in the .htaccess file 5 months ago.
Изменения в файле .htaccess я делал 5 месяцев назад.

I think that the company the owner of a hosting made some changes on a hosting though they also won't confess in it. I saw on a hosting there were new functions and new folders, just that day when my site ceased to open. And this code in the .htaccess file ceased to work normally.
Я думаю, что компания владелец хостинга внесла какие-то изменения на хостинге, хотя они и не сознаются в этом. Я видел на хостинге появились новые функции и новые папки, как раз в тот день, когда мой сайт перестал открываться. И этот код в файле .htaccess перестал нормально работать.

ahh ok, I would open a ticket to your host and ask them what changes they made recently then. They might have upgraded PHP or Apache, but it would be handy for you to know what they are doing ;)


All times are GMT. The time now is 07:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01019 seconds
  • Memory Usage 1,776KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete