Log message #4114091

# At Username Text
# Feb 3rd 2018, 21:52 hmic and google still is your friend
# Feb 3rd 2018, 21:52 hmic you were but looking for apache help, not cake really...
# Feb 3rd 2018, 21:51 jason001 again, I apologize
# Feb 3rd 2018, 21:51 jason001 thank you. I'll accept my question was under-googled. but I felt it relevant to still consult cake experts, since 1) cake is sensitive to incorrect .htaccess changes and 2) this is one of the forums cakephp points you to when looking for help
# Feb 3rd 2018, 21:49 hmic http://lmgtfy.com/?q=htaccess+force+https
# Feb 3rd 2018, 21:46 jason001 back to the drawing board!, thank you
# Feb 3rd 2018, 21:46 jason001 got it
# Feb 3rd 2018, 21:46 hmic it's not its not working at all
# Feb 3rd 2018, 21:46 hmic it is just not the right thing your redirect does
# Feb 3rd 2018, 21:45 jason001 just one nagging detail tho. if Htaccess wasn't working, then why does it redirect to https if i browse to http://sitename.com/users/login?
# Feb 3rd 2018, 21:44 jason001 ok, you know what. you're right
# Feb 3rd 2018, 21:44 hmic so you got the wrong recipe
# Feb 3rd 2018, 21:44 jason001 but i copy-pasted, and modified the domain
# Feb 3rd 2018, 21:43 hmic no, not like you did
# Feb 3rd 2018, 21:43 jason001 well here's the thing - google says modify my htaccess, like I did
# Feb 3rd 2018, 21:43 hmic there are like a quadrillion hits on this specific question
# Feb 3rd 2018, 21:43 hmic i'm not going to google that for you
# Feb 3rd 2018, 21:42 jason001 goddamnit, ok how do i fix that?
# Feb 3rd 2018, 21:42 hmic :D
# Feb 3rd 2018, 21:42 hmic go fix it!
# Feb 3rd 2018, 21:42 hmic because you messed it up probably
# Feb 3rd 2018, 21:42 jason001 well I thought htaccess would do that, but it's not
# Feb 3rd 2018, 21:42 hmic why dont you let your webserver redirect to https even before it hits cake at all?
# Feb 3rd 2018, 21:40 jason001 how can I catch that first, auth auth redirect - and make it go to https?
# Feb 3rd 2018, 21:40 jason001 if I refresh that page, i get sent to https://sitename.com/users/login
# Feb 3rd 2018, 21:40 jason001 when someone goes to my site... http://sitename.com . they first get sent, by cake to http://sitename.com/users/login
# Feb 3rd 2018, 21:39 jason001 something like Options +FollowSymlinks RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule (.*) https://example.com/$1 [R]
# Feb 3rd 2018, 21:39 jason001 so I have a question! - (cake 3.5 btw) - I made some changes to my .htaccess to redirect to https if they used http
# Feb 3rd 2018, 21:37 davinci always
# Feb 3rd 2018, 21:37 jason001 anyone caking at the moment?
# Feb 3rd 2018, 21:31 davinci I put the details here: https://stackoverflow.com/questions/48602025/how-to-get-params-from-query-object-in-cakephp-3
# Feb 3rd 2018, 21:30 davinci and no, not right then. They're added from beforeFinds from behaviors, plugins...etc. So it's not as simple as just looking at the single query code row
# Feb 3rd 2018, 21:29 davinci Right. They should be. But they don't seem to be, and I have no way to debug what it's actually using as that param value
# Feb 3rd 2018, 21:28 ahmed_bodi those would be whatever your providing right e.g. $table->find()->where(['user_id' => $user_id])->all(); otherwise they would just be an aliased name for each column in the table
# Feb 3rd 2018, 21:27 davinci when I debug the object, it shows params => [ :c1, :c2 ..etc, but I want to see what values those `:c1`, `:c2` are
# Feb 3rd 2018, 21:27 ahmed_bodi @davinci which params?
# Feb 3rd 2018, 21:27 davinci How can I get the 'params' from a query object?
# Feb 3rd 2018, 21:24 ahmed_bodi @hmic quick query is there any way to use the tree queries with contain to get the link back to the users model?
# Feb 3rd 2018, 21:06 hmic thats *the* solution to store tree like data in a flat table, scientifically proven design ;-)
# Feb 3rd 2018, 21:05 ahmed_bodi i'll try then and pop back with my results
# Feb 3rd 2018, 21:05 hmic welcome!