掌上电脑

查看完整版本: 已解决 &转到= newpost链接不正确重定向



moman
27-10-10, 02:55
所有请求showthread.php?T = X&转到= newpost显示空白页和不正确重定向的。

这是一个。htaccess的问题(即百度推广支持告诉我刚才),但他们的修复似乎打破别的东西。你有什么想法,这可能是错在这里吗?


# 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 /

RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
RewriteRule (.*) http://www.pentaxforums.com/forums/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|et|tl|fi|fr|gl|de|en|el|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|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forums/ [L,QSA]
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|et|tl|fi|fr|gl|de|en|el|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|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/forums/$2 [L,QSA]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

#RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
#RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

Options All -Indexes
Options +FollowSymLinks

kamilkurczak
27-10-10, 08:02
您好,
你能复制这条规则:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]

并将其粘贴前:

#RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
#RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]


如果您禁用vBET是仍然存在的问题?

moman
27-10-10, 15:40
感谢您及时的响应。
是的,问题消失了,当我删除vbet htaccess规则
你修复没有改变任何东西

kamilkurczak
27-10-10, 16:11
您好,
所以,请在这里描述的 - 我怎么能重现您的论坛,因为我无法重现它,我不能看到这个问题。
其次 - 请粘贴在这里你的服务器日志文件(文件服务器上所有问题的信息),因为我们认为,要么是不可见的功能
(失踪
require_once),因为你有一个空白页。

谢谢

moman
27-10-10, 18:13
http://www.pentaxforums.com/forums/showthread.php?t=10000&goto=newpost

例如,作为一个尝试链接。

请注意该网页上有没有PHP的错误或警告。

唯一的服务器我观察现在的问题是与SQLite的问题,但newpost问题之前,所以这可以忽略不计。

什么是最好的方式来调试?也许vbenterprisetranslator_seo文件不正确地转发到百度推广的要求吗?请注意,showthread.php是不是甚至称,如果你点击上面的链接。

kamilkurczak
28-10-10, 08:02
您好,
摩曼我在您的网站在这里:

http://www.pentaxforums.com/forums/
请写,我应该点击有这个问题(一步一步),因为我必须正确重现。
谢谢

moman
28-10-10, 17:51
这个问题只有真正为最终用户时的AJAX倍和快速回复作为一个经常性的形式提交。它也发生在移动皮肤,我们肯定newpost链接。

这些都是错误的完美例子:
http://www.pentaxforums.com/forums/showthread.php?t=1000&goto=newpost
http://www.pentaxforums.com/forums/showthread.php?t=10000&goto=newpost

这工作,因为线程是不存在的:
http://www.pentaxforums.com/forums/showthread.php?t=10000000&goto=newpost

kamilkurczak
29-10-10, 10:04
您好,

因此,如果你没有在服务器日志文件中的任何说明 - 请给我(下午)您的admincp和FTP访问的细节。

其次。请在这里描述我应该做的重现此问题(一步一步 - 没有链接),请描述我应该按一下,应等待多久,我等
谢谢

moman
30-10-10, 02:10
我已经解决了这一问题。

vbenterprisetranslator_seo.php,第56行:


if (isset($_GET['t']) && !isset($_GET['goto']) && false !== strpos($_SERVER['REQUEST_URI'], 'showthread.php')) {

vBET
01-11-10, 17:30
这是已经在我们vBET4.x代码 - 我们忘了做也vBET 3.x的 - 我们的过错。我现在纠正它 - 它会在下一版本中包含。

moman
02-11-10, 16:12
大感谢说明!

Automatic Translations (Powered by Google, Microsoft®, Yandex, SDL Language Cloud, IBM Watson and Apertium):
AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translated to other languages supported by vB Enterprise Translator 4.10.1