Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

301 redirects for windows to linux

Options
  • 13-07-2010 9:48am
    #1
    Registered Users Posts: 597 ✭✭✭


    Hello,

    I have a website thats been changed from .net to php and Im going to create 301 redirects for the old pages to the new ones. For example, I want to redirect mysite.com/thispage.aspx to mysite.com/thatpage.php. Both have the same content.

    I'm trying to figure out how to do the redirects properly. My new server is a linux server and will not run .net(.aspx) pages so I guess I have to create the redirects in php. Bu tI am unsure if that would work becouase of the extension name change.

    Using the example above, Should I create a php page called thispage.php and use something like the script below to redirect to thatpage.php?

    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.nmysite.com/thatpage.php&quot; );
    ?>

    I don't have access to the php.ini or .htaccess files on the new server. Apologies if this is not clear.

    Thank you


Comments

Advertisement