Alias domain 301 redirect

Discussion in 'Tips/Tricks/Mods' started by tio289, May 15, 2009.

  1. tio289

    tio289 Member

    hi. its simply, just edit file /usr/local/ispconfig/interface/web/sites/form/web_aliasdomain.tform.php

    this lines
    Code:
    ...
    '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

    Code:
    ...
    '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
    Code:
    ...
    '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')
    		),
    ...
    
     
  2. math

    math New Member HowtoForge Supporter

    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,
     
  3. thesslstore

    thesslstore New Member

    Hello friends,

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

    Thanks.
     

Share This Page