vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Invalid Redirect URL (https://vborg.vbsupport.ru/showthread.php?t=315426)

TheAdminMarket 11-15-2014 07:43 AM

Invalid Redirect URL
 
Hello,

I'm operating my site in SSL (https://). When a user tries to login he gets error:
Invalid Redirect URL (http://www.lagadas.com/)

As you can see the redirection is http and not https even if in the settings I've set all URLs with https. I was able to fix this problem by enabling the "Disable Redirection Domain" and now it works fine. But what scares me is that there is a warning on this setting saying that by disabling it I'm getting in risk.

Is there any other way to do it?

Thank you

Lynne 11-15-2014 05:37 PM

Enter that invalid redirect URL into AdminCP > Settings > Options > Site Name/URL/etc > Redirect Domain Whitelist (without the ending / as per the instructions)

You may want to do an .htaccess redirect from http://www.lagadas.com/ to https://www.lagadas.com/ (and http://lagadas.com/ to https://www.lagadas.com/) so that users can't access the site without an https URL

ForceHSS 11-15-2014 05:46 PM

1 Attachment(s)
I am not a htaccess guy so if this is not right someone fix any problems with it
Code:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^lagadas\.com$ [OR]
RewriteCond %{HTTP_HOST} ^http\.lagadas\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.lagadas\.com$
RewriteRule ^(.*)$ https://www.lagadas.com/$1 [R=301,L]

full htaccess file below

Lynne 11-15-2014 06:10 PM

I'm a Trial and Error .htaccess person, so I can't really comment on what ForceHSS posted. :)


All times are GMT. The time now is 10:05 AM.

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.01003 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete