PDA

View Full Version : Alias domain 301 redirect


tio289
15th May 2009, 11:29
hi. its simply, just edit file /usr/local/ispconfig/interface/web/sites/form/web_aliasdomain.tform.php

this lines

...
'redirect_type' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'y',
'value' => array('' => 'No redirect', 'no' => 'No flag', 'R' => 'R', 'L' => 'L', 'R,L' => 'R,L')
),
...


to this


...
'redirect_type' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'y',
'value' => array('' => 'No redirect', 'no' => 'No flag', 'R=301,NC' => 'R=301,NC', 'L' => 'L', 'R,L' => 'R,L')
),
...

you can add your own options, for example

...
'redirect_type' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
'default' => 'y',
'value' => array('' => 'No redirect', 'no' => 'No flag', 'R=301,NC' => 'R=301,NC', 'R=302,NC' => 'R=302,NC', 'L' => 'L', 'R,L' => 'R,L')
),
...

math
14th July 2010, 14:16
I don't know why (not a redirect specialist :p ) but it didn't worked for me.. (redirect was not effective)
I had to replace 'R=301,NC' with 'L,R=301'

regards,

thesslstore
16th July 2010, 08:25
Hello friends,

Hey I am doing the same but it is not working.. Can you please tell me what can be the issue??

Thanks.