Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-15-2013, 12:21 AM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 10-15-2013, 12:27 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps this may help.

ACP --> Settings --> Options --> Site Name / URL / Contact Details --> Redirect Domain Whitelist --> enter erroring URL (no / at the end).
Reply With Quote
Благодарность от:
findingpeace
  #3  
Old 10-15-2013, 12:29 AM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #4  
Old 10-15-2013, 12:32 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yours may work also, I just am not that familiar with htaccess rewrites.
Reply With Quote
  #5  
Old 10-15-2013, 12:35 AM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by findingpeace View Post
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...
Reply With Quote
  #6  
Old 10-15-2013, 12:43 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, try adding the / at the end, that may work.
Reply With Quote
  #7  
Old 10-15-2013, 12:47 AM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-15-2013, 12:48 AM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 10-15-2013, 12:49 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok wait for someone more familiar with this type of thing then, sorry I could not be of more help.
Reply With Quote
  #10  
Old 10-15-2013, 12:49 AM
pityocamptes's Avatar
pityocamptes pityocamptes is offline
 
Join Date: Apr 2010
Posts: 595
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05050 seconds
  • Memory Usage 2,262KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete