vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Invalid Redirect URL (http://website.com/). (https://vborg.vbsupport.ru/showthread.php?t=313526)

dr nick 08-07-2014 08:17 AM

Invalid Redirect URL (http://website.com/).
 
Invalid Redirect URL (http://website.com/)

One user gets this problem when he tryes to log in, any iadeas?

Runs 3.8.7

Zachery 08-07-2014 03:51 PM

Because he went to the forum from a url that is not entered into the AdminCP.

For example, vbulletin.org and www.vbulletin.org are two different domains as far as vBulletin and your browser is concerned.

You need to make sure that you only allow visitors to access the correct domain, and redirect users who access it from incorrect domains.

ForceHSS 08-07-2014 04:54 PM

You can use an htaccess file so users can use the correct URL and if they try to use the wrong one it will direct them to the one you want
Something like this
Code:

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


aston2171 09-03-2014 03:59 AM

Sorry if this suggestion has been made before, but can't vBulletin simply consider website.com and www.website.com the same domain?

No other web software I've ever used has come across this problem. It seems like it's how vBulletin chooses its implementation. I'm sure there are reasons for it, but surely there is a better way to handle this, somehow, than requiring a .htaccess rewrite rule to be manually added to the website.

ShawneyJ 09-03-2014 09:35 AM

i have been using this mod for that reason: https://vborg.vbsupport.ru/showthread.php?t=222898
i use it also on client forums. no complaints yet. upload it and thats it.

Paul M 09-03-2014 10:25 AM

Quote:

Originally Posted by aston2171 (Post 2513589)
Sorry if this suggestion has been made before, but can't vBulletin simply consider website.com and www.website.com the same domain?

Because they are not the same domain.

Quote:

Originally Posted by aston2171 (Post 2513589)
... surely there is a better way to handle this, somehow, than requiring a .htaccess rewrite rule to be manually added to the website.

You dont have to do that, that is simply a suggestion that many people like to implement.

You can simply add the domain(s) to the Redirect Domain Whitelist in vB Options.


All times are GMT. The time now is 01:09 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.01100 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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