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)

findingpeace 10-14-2013 11:52 PM

On Whynopadlock, you need to run it without the querystring - just https://www.yoursite.com/login.php

pityocamptes 10-14-2013 11:54 PM

Ok, what I did is left the home url and forum url back to https[sitename]. I changed the white list to http[sitename] and it seems to work...

findingpeace 10-14-2013 11:55 PM

Awesome! Now if you type in http://www.yoursite.com - does it automatically go to HTTPS for you? What if you type in http://yoursite.com (no www)

pityocamptes 10-15-2013 12:00 AM

If I type in http I get this:

http://www.XXXXXXXXXXXXXX.com/


if I do no www I get this:

http://XXXXXXX.com/


So what do I do now????? Thanks

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

SHould I try your redirect again?

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

Ok, tried your htaccess again and it threw an internal error when logging off... had to remove it...

ForceHSS 10-15-2013 12:05 AM

Maybe if you give us your real url we can see it for or selfs

pityocamptes 10-15-2013 12:07 AM

Quote:

Originally Posted by ForceHSS (Post 2453419)
Maybe if you give us your real url we can see it for or selfs

XXXXXXXXXXXX

findingpeace 10-15-2013 12:18 AM

That htaccess file should not be causing any errors. Do you have other rewrite rules in there?

Try just this part. Needs to go at the very end:

Code:

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

(No changes needed there. Leave exactly as is)

Let me know when you do this, so I can try loading your site again.

pityocamptes 10-15-2013 12:22 AM

Here is my rewrite:

...

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

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


I commented out yours... until I get it fixed...

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

Ok, made the changes...

findingpeace 10-15-2013 12:26 AM

OH no wonder this blew up!! Yeah, we need to get it to play friendly with the rest of your rules :)

First of all, I don't see any rewrite here sending non-www traffic to www. I just checked, and I can go to the non-www version of your site, which could cause all sorts of cookie problems.

Could you try uncommenting this line and putting it up top, right below Rewrite Engine On

Code:

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

The www redirect really should be your first rule. If that works, then we can integrate the HTTPS rule too. Let me know

pityocamptes 10-15-2013 12:29 AM

Ok, changed it.


All times are GMT. The time now is 07:13 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.02500 seconds
  • Memory Usage 1,733KB
  • 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
  • (3)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