HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=29)
-   -   Alias domain 301 redirect (http://www.howtoforge.com/forums/showthread.php?t=34999)

tio289 15th May 2009 10:29

Alias domain 301 redirect
 
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')
                ),
...


math 14th July 2010 13: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 07: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.


All times are GMT +2. The time now is 12:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.