FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Why a 302 redirect?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166902&th=120383#msg_166902
For anonymous access, the URL of user profiles are redirected to the login page in FUDForum.
This makes sens however this is done using a 302 http redirect. I don't understand why and I need to change it.
Does anyone know how to change this to a 301 permanent redirect?
Otherwise a crawler will think the redirect will be temporary... and will try again and again to index the url.
And I should have given more context:
example of such a url:
forum.nuxeo.com/u/4828/
This takes me to forum.nuxeo.com/?t=login& but with an http 302 (which is wrong)
Thanks in advance
]]>rbenedetti2012-03-23T18:45:11-00:00Re: Why a 302 redirect?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166904&th=120383#msg_166904
Something else must me wrong, probably mod_security?]]>naudefj2012-03-23T20:10:33-00:00Re: Why a 302 redirect?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166906&th=120383#msg_166906
Gosh I am not the one who installed FUDForum but may be they did something wrong at installation.
Any idea then why my urls which are my site.com/u/userid don't go to the profile but to the login page?
]]>rbenedetti2012-03-23T20:16:44-00:00Re: Why a 302 redirect?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166907&th=120383#msg_166907
If so, you will have to add 301 (Moved Permanently) explicitly in cookies.inc.t, function ses_anonuser_auth().
Remember to rebuild the theme to implement your changes.]]>naudefj2012-03-23T20:21:16-00:00Re: Why a 302 redirect?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166908&th=120383#msg_166908
rbenedetti wrote:
Any idea then why my urls which are my site.com/u/userid don't go to the profile but to the login page?
Setting "Hide user profiles" is probably set to YES?
If so, anonymous and unconfirmed forum members will not be able to view profiles of registered users.
]]>naudefj2012-03-23T20:26:19-00:00Re: Why a 302 redirect?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166909&th=120383#msg_166909
The two answers make a lot of sense, sorry for being a newb!
I will try one way or the other..
Roland]]>rbenedetti2012-03-23T20:48:14-00:00Re: Why a 302 redirect?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166910&th=120383#msg_166910
Thanks again. A last note on this one.
I found the function
"function ses_anonuser_auth($id, $error)
{
if (!empty($_POST)) {
$_SERVER['QUERY_STRING'] = '';
}
q('UPDATE {SQL_TABLE_PREFIX}ses SET data='. _esc(serialize($error)) .', returnto='. ssn($_SERVER['QUERY_STRING']) .' WHERE id='. $id);
if ($GLOBALS['FUD_OPT_2'] & 32768) { // USE_PATH_INFO
header('Location: {FULL_ROOT}{ROOT}/l/'. _rsidl);
} else {
header('Location: {FULL_ROOT}{ROOT}?t=login&'. _rsidl);
}
exit;
}"
however I am not that technical. Can you give more info on the syntax so that I can try?
Thnaks again!
]]>rbenedetti2012-03-23T20:51:18-00:00Re: Why a 302 redirect?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166915&th=120383#msg_166915
naudefj2012-03-24T14:34:51-00:00Re: Why a 302 redirect?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166916&th=120383#msg_166916
For now I simply authorized user profile. I guess this will be enough for what I want to accomplish.]]>rbenedetti2012-03-26T13:31:18-00:00