Bug Private messages redirect loop

Status
Not open for further replies.

lettebasse

Customer
Hi guys. The seovb.com guys upgraded our forum and installed DBSEO, and found the next issue: when we use custom rewrite for private messages, we are getting a redirect loop. We had to disable it.

Here is the message from Eugenio tan:

Hi Pablo,

There are list of custom rewrite rule located at "admincp -> DragonByte Tech: SEO -> Control Panel -> URL Rewrite Settings -> General Rewrite Settings -> Custom Rewrite Rules" I disable this:

'sendmessage\.php' => 'contactanos.html'

cause it causes the issue saying redirect loop, You can ask dragonbyte regarding this issue. Let us know how can we help once they reply the issue.

Thanks,
 
Make sure your .htaccess file or something else isn't attempting to redirect contactanos.html in some other way.
 
Hi Fillip, we checked and found nothing that could be triggering this. We are having a simmilar issue with email confirmation link, which goes to a redirect loop too. Here I attach the detail of the private messages redirect loop:

Captura de pantalla 2014-09-24 14.26.22.png

The guys from seovb atold me to tell you that these configurations were working ok with vBseo
 
Can you please show me all your Custom Rewrite Rules exactly as-is so that I can test them further?
 
Of course

// showgroup.php as forumleaders.html v.0.1 by the vBSEO Team ;)
'^showgroups\.php$' => 'staff.html'
'^index\.php$' => 'index.html'
'sendmessage\.php' => 'contactanos.html'
'^register\.php' => 'registrate.html'
'login\.php\?do=lostpw' => 'recordarme-la-clave.html'
'^misc\.php\?do=vsarules' => 'reglas.html'
'glossary.php' => 'glosario.html'
'^profilestats\.php$' => 'estadisticas.html'
//==========================================================================
// Portal
//==========================================================================
'index\.php\?ID=reglas' => 'institucional/reglas.html'
//'index\.php\?ID=tdu' => 'institucional/terminos-de-uso.html'
'^index\.php\?ID=rosario' => 'rosario'
//'index\.php\?ID=(.+)$' => 'intitucional-$1'
//'index\.php\?ID=(\w+)$' => 'index/$1.html'
// muchas variables
// 'index\.php\?ID=(\w+)&variable=(\w+)&variable2=(\w+)' => 'index-$1-$2-$3.html'

//==========================================================================
// Seccion de Links
//==========================================================================
'links/index\.php$' => 'links/'
'links/index\.php$' => 'links/index.html'

//==========================================================================
// User Control Panel
//==========================================================================
'usercp\.php$'=>'panel.html'

//==========================================================================
// Profile Pages
//==========================================================================
'^profile\.php\?do=editsignature'=>'editar/firma.html'
'^profile\.php\?do=editpassword'=>'editar/clave.html'
//'^profile\.php\?do=editprofile$'=>'editar/perfil.html'
'^profile\.php\?do=editprofilepic'=>'editar/foto.html'
'^profile\.php\?do=editoptions'=>'editar/opciones.html'
'^profile\.php\?do=editavatar'=>'editar/avatar.html'
'^profile\.php\?do=editlist'=>'editar/lista-amigos-e-ignorados.html'
'^profile\.php\?do=editattachments'=>'editar/archivos-adjuntos.html'
//'^profile\.php'=>'perfil.html'


//==========================================================================
// Private Messages - Really Bored
//==========================================================================
//'^private\.php\?do=newpm'=>'mensajes-privados/enviar-nuevo-mensaje.html'
//'^private\.php\?do=trackpm'=>'mensajes-privados/rastrear-mensajes.html'
//'^private\.php\?do=editfolders'=>'mensajes-privados/editar-carpetas.html'
//'^private\.php'=>'mensajes-privados/index.html'

//==========================================================================
// Suscripciones
//==========================================================================
'^subscription\.php\?do=viewsubscription'=>'suscripciones/ver.html'
'^subscription\.php\?do=editfolders'=>'suscripciones/editar-carpetas.html'

//==========================================================================
// Calendario
//==========================================================================
//'^calendar\.php\?do=viewreminder'=>'calendarios/recordatorios.html'
//'^calendar\.php\?do=getinfo&day=(\d+)-(\d+)-(\d+)&e=(\d+)&c=(\d+)' => 'calendarios/$5/$1-$2-$3/e-$4/'
//'^calendar\.php\?do=getinfo&e=(\d+)&day=(\d+)-(\d+)-(\d+)&c=(\d+)' => 'calendarios/$5/$2-$3-$4/e-$1/?'
//'^calendar\.php\?do=getinfo&c=(\d+)&day=(\d+)-(\d+)-(\d+)' => 'calendarios/$1/$2-$3-$4/'
//'^calendar\.php\?do=getinfo&day=(\d+)-(\d+)-(\d+)&c=(\d+)' => 'calendarios/$4/$1-$2-$3/?'
//'^calendar\.php\?month=(\d+)&year=(\d+)&c=(\d+)&do=displaymonth' => 'calendarios/$3/anio-$2/mes-$1/'
//'^calendar\.php\?c=(\d+)&week=(\d+)&do=displayweek&month=(\d+)' => 'calendarios/$1/mes-$3/semana-$2/'
//'^calendar\.php\?c=(\d+)&week=(\d+)' => 'calendarios/$1/semana-$2/'
//'^calendar\.php\?c=(\d+)' => 'calendarios/$1/'
//'^calendar\.php$' => 'calendarios/index.html'

Many thanks
 
I am not experiencing any redirect loops when going to /sendmessage.php

Could you please provide step-by-step instructions for how to replicate this issue?
 
Fillip, in the configuration I showed you, the configuration with problems is disabled:

//'^private\.php'=>'mensajes-privados/index.html'

When we remove the // to activate it, is when we see the problem. We can enter the private messages inbox through the generated URL (http://www.nightclubber.com.ar/foro/mensajes-privados/index.html) but when we try to read a message, for example http://www.nightclubber.com.ar/foro/mensajes-privados/index.html?do=showpm&pmid=982670 there we get the redirect loop.

We are having the same issue with confirmation emails to validate email accounts, we had to disable custom rewrite there too.
 
This can be fixed by changing the relevant rule to
Code:
'^private\.php$'=>'mensajes-privados/index.html'

I suspect the same will be true for the email validation :)
 
One more problem that i think is related, regarding these 2 rules:

Code:
'index\.php\?ID=reglas' => 'institucional/reglas.html'

when activated, the link in the footer turns to NIGHTCLUBBER: - Reglamento and works ok, but why doesn't it add the /institucional/ , like says in the rule ?


Code:
'index\.php\?ID=tdu' => 'institucional/terminos-de-uso.html'

On the other hand, with this one:
- When being in the home of the web site (NIGHTCLUBBER: La comunidad clubber mas grande de Latinoamerica.) the link in the footer links to NIGHTCLUBBER: which takes you to the forum, not to the terms of use.

- When being on the forum (NIGHTCLUBBER:) the link in the footer links to 404 Not Found (removing the /foro/ in this case) and takes to a 404 page.


That section configuration
Code:
'index\.php\?ID=reglas' => 'institucional/reglas.html'
'index\.php\?ID=tdu' => 'institucional/terminos-de-uso.html'
'^index\.php\?ID=rosario' => 'rosario'
'index\.php\?ID=(.+)$' => 'institucional-$1'
//'index\.php\?ID=(\w+)$' => 'index/$1.html'
// muchas variables
// 'index\.php\?ID=(\w+)&variable=(\w+)&variable2=(\w+)' => 'index-$1-$2-$3.html'
 
I haven't tested this since I don't have your index.php file but try changing them to
Code:
'^index\.php\?ID=reglas$' => 'institucional/reglas.html'
'^index\.php\?ID=tdu$' => 'institucional/terminos-de-uso.html'
'^index\.php\?ID=rosario$' => 'rosario'
'^index\.php\?ID=(.+)$' => 'institucional-$1'
 
I have tried it and none of them work. I have been checking a little bit and i think DBSEO configurations are in the htaccess located in /foro/ and the htaccess located in root directory doesn't contanin any DBSEO code. Can this be related to that ?

This are the contents of each one:

/public_html/foro/.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 /foro

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

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]


_________________________________________________________________-

/public_html/.htaccess


<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
#Deny From all
RewriteEngine on
Options +FollowSymLinks
AddType application/x-bittorrent torrent
RewriteCond %{REQUEST_FILENAME} !foro/
#RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ foro/vbseo.php?vbseourl=$1&vbseorelpath=../&%{QUERY_STRING} [L]
#RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
#RewriteRule ^(.*.php)$ foro/vbseo.php?vbseourl=$1&vbseorelpath=../&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_URI} ^/(?!shop|ayuda|admincp|modcp|clientscript|cpstyles|images|search\.php).*$
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule /*$ ¡Combate a los spamers (correo electrónico no solicitado) [L,R]
RedirectMatch permanent ^/foros$ NIGHTCLUBBER:
RedirectMatch permanent ^/board$ NIGHTCLUBBER:
RedirectMatch permanent ^/boards$ NIGHTCLUBBER:
RedirectMatch permanent ^/forum$ NIGHTCLUBBER:
RedirectMatch permanent ^/forums$ NIGHTCLUBBER:
RedirectMatch permanent ^/foto$ http://www.nightclubber.com.ar/fotos
RedirectMatch permanent ^/album$ http://www.nightclubber.com.ar/fotos
RedirectMatch permanent ^/albums$ http://www.nightclubber.com.ar/fotos
RedirectMatch permanent ^/galeria$ http://www.nightclubber.com.ar/fotos
RedirectMatch permanent ^/galerias$ http://www.nightclubber.com.ar/fotos
RedirectMatch permanent ^/fotolog$ http://www.fotolog.com/nightclubber/
RedirectMatch permanent ^/flog$ http://www.fotolog.com/nightclubber/
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^nightclubber.com.ar [nc]
rewriterule ^(.*)$ http://www.nightclubber.com.ar/$1 [r=301,nc]

php_flag xdebug.default_enable 0
#php_flag xdebug.trace_enable_trigger 1
php_flag xdebug.remote_enable 1
#php_value xdebug.remote_connect_back On
php_value xdebug.remote_host 81.84.12.189

AuthName "Volvemos a las 23 hs"
AuthUserFile "/home/nclubber/.htpasswds/public_html/passwd"
 
Status
Not open for further replies.

Legacy DragonByte SEO

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
7,172
Customer rating
5.00 star(s) 1 ratings
Top