vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   https redirect login problem (https://vborg.vbsupport.ru/showthread.php?t=303413)

pityocamptes 10-14-2013 11:21 PM

https redirect login problem
 
In the back end I have this:

My forum url is : https://www.XXXXXXXXXXXXXXXXX

Home Page URL is: https://www.XXXXXXXXXXXx

Both are exact.

However, I noticed when I just put www.XXXXXXXXXXXXX in the browser it goes to my index page like normal. However, when I tried to login, I would get a redirect error.

I changed the forum url to: http://www.XXXXXXXXXXXXXXXXXXX

and it seems to work now, as far as logging in. Was this correct to do, should I do something else? Thanks!

ozzy47 10-14-2013 11:27 PM

Perhaps this may help.

ACP --> Settings --> Options --> Site Name / URL / Contact Details --> Redirect Domain Whitelist --> enter erroring URL (no / at the end).

findingpeace 10-14-2013 11:29 PM

Have you added https redirects into .htaccess yet?

You'll probably want these lines:

Code:

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

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Replace yoursite with your website URL. Switch your forum URLs back to https://www.

Try logging in now

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

Edit, ozzy's answer is the right one. Oops!!

ozzy47 10-14-2013 11:32 PM

Yours may work also, I just am not that familiar with htaccess rewrites.

pityocamptes 10-14-2013 11:35 PM

Quote:

Originally Posted by findingpeace (Post 2453400)
Have you added https redirects into .htaccess yet?

You'll probably want these lines:

Code:

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

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Replace yoursite with your website URL. Switch your forum URLs back to https://www.

Try logging in now

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

Edit, ozzy's answer is the right one. Oops!!


Ok, I changed my htaccess should I change it back - take off what you said? Or leave it? Thanks. cause now I'm getting this:

https://www.XXXXXXXXXXXXXXXX.com/default.asp?r=

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

Well, I'm not sure what to put, because this is the error URL, which has a "/" at the end...

Invalid Redirect URL (https://www.XXXXXXXXX.com/)

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

Still getting the redirect error, even after doing what Ozzy said...

ozzy47 10-14-2013 11:43 PM

Ok, try adding the / at the end, that may work.

pityocamptes 10-14-2013 11:47 PM

Nope, didnt work...

Weird if the forum url is http and the home page url is https I have no issues. Should it be that way, what exactly is the difference and should I be concerned about changing something else to get it to work? Thanks.

findingpeace 10-14-2013 11:48 PM

If you want to use HTTPS, then you should consistently use HTTPS (in the forum URL and homepage URL - same with www). This will just take some tweaking, but we'll get there :) Can you copy the exact redirect error you're getting?

ozzy47 10-14-2013 11:49 PM

Ok wait for someone more familiar with this type of thing then, sorry I could not be of more help. :(

pityocamptes 10-14-2013 11:49 PM

Ok, I tried whynopadlock.com and got this error for the login page:

ERROR: The secure URL you submitted was redirected to:
http://www.XXXXXXX.com/forum.php

Please try pasting the secure URL you originally submitted into a new web browser window to make sure it stays on the secure page. Your secure page may require there to be items in a shopping cart, or for the user to be logged in. It may not be possible to test this URL.

Secure URL submitted: https://www.XXXXXXXXXXXX.com/login.php?do=login


All times are GMT. The time now is 01:56 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.01850 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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