View Full Version : Login Error/Redirect
4themasses
05-29-2012, 07:56 AM
Every time I login I get a redirect error, doesn't go to main forum page?
DaveS
05-29-2012, 08:30 AM
are you using www.svocop.com (http://www.svocop.com) or svocop.com?
the www. is required for the redirect to work (I was having the same problem too...which is why I know).
Alex L
05-29-2012, 07:11 PM
are you using www.svocop.com (http://www.svocop.com) or svocop.com?
the www. is required for the redirect to work (I was having the same problem too...which is why I know).
# curl -I www.svocop.com
HTTP/1.1 200 OK
Date: Wed, 30 May 2012 03:05:14 GMT
Server: Apache
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Length: 14807
Content-Type: text/html
RewriteEngine On
RewriteCond %{HTTP_HOST} ^svocop\.com$
RewriteRule /(.*)$ http://www.svocop.com/$1 [R,L]
i never run into that problem with $dayjob's software, nope, not me, not at all. if you want an earful in person, ask me about poorly thought out mult-homed/multi-named enabled customer installs over a 6 pack of beer.
also wanna know whats _fun_? building out a rewrite handler to map ubb style links across 3 servernames to a SMF style URI, that uses a completely different anchor and path layout. 'should take a few weeks' i said.. :facepalm:
Patrick
05-29-2012, 07:55 PM
Alex L is banned for not speaking English.
MikeFleming
05-29-2012, 08:03 PM
^
That will work for the site, but probably not for the forum. Those kind of redirections are commonly used to force people to use SSL, i.e. from http: to https: transparently.
The issue is that the user points to 'svocop.com/forum' and logs in - then a cookie is placed (or checked) by the forum software which stores it as 'www.svocop.com/forum' - which odes not match. Hence the redirect error from the browser.
In any case it's a user error, and easily resolved by pointing the browser to the proper addy == www.svocop.com/forum. using 'svocop.com/forum' would also fail, I suspect, if we were using host headers to get to the forum.
Maybe i should just take 'svocop.com' out of the dns records?
Patrick
05-29-2012, 08:09 PM
Mike Fleming is banned for not speaking English.
MikeFleming
05-29-2012, 08:20 PM
Mike Fleming is banned for not speaking English. I hate it when that happens.
Alex L
05-30-2012, 03:43 AM
The issue is that the user points to 'svocop.com/forum' and logs in -
na, if you setup the redir in apache, the initial GET for http://svocop.com/forum/ is redirected to http://www.svocop.com/forum before the page is even rendered, let alone the user has time to log in and have a session cookie created. note the ^/(.*)$ on the url match, and not ^/(.+)$, so it'll catch all the requests; which occurs way before handing the request over to mod_php
In any case it's a user error, and easily resolved by pointing the browser to the proper addy == www.svocop.com/forum (http://www.svocop.com/forum). using 'svocop.com/forum' would also fail, I suspect, if we were using host headers to get to the forum.
Maybe i should just take 'svocop.com' out of the dns records?
meh, most sites dont require www and will 302 over to the fully qualfied www address. i can see the principal of the matter, but if you remove the root a record, then when people type in svocop.com into their browser bar, it'll invoke the 'no such domain, ill send some impressions to $search_engine_that_paid_the_last_installed_toolbar_author' handler, which is dumb IMO.
edit: oh, i see its already in place. sneeeky mike!
Alex L
05-30-2012, 03:45 AM
Alex L is banned for not speaking English.
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.
MikeFleming
05-30-2012, 09:23 AM
^
It's MUCH better in the original Klingon.
4themasses
05-31-2012, 11:06 AM
I'm banning myself from this thread....
It worked this last time though, Thanks!
MikeFleming
05-31-2012, 01:31 PM
So I fixed it thenl
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.