Forum Moderators: phranque

Message Too Old, No Replies

redirecting from config file on server

can anyone help me

         

briggidere

9:17 am on Jul 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Everyone,

I was hoping that some of you may be able to shed some light on a little question i have.

We have had a site re-build and the designer has renamed the pages without telling anyone. It hasn't gone live yet.

We said for him to put 301's from the old pages to the new pages and he didn't want to do it.

He said that he was going to use the config files on the server to act as the htaccess file, with 301 redirects to the new pages from there. I know the redirect works with this method, but i was worried about loosing search engine rankings from this.

can anyone tell me if this is a safe way to redirect and keep your positions?

Any help would be appreciated.

Briggidere

Angelis

9:26 am on Jul 8, 2005 (gmt 0)

10+ Year Member



In ASP you can specify a 301 redirect without using htaccess by using something like this...

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.domain.ext"
%>

briggidere

9:39 am on Jul 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



do you know how you would do it in php.

Angelis

9:46 am on Jul 8, 2005 (gmt 0)

10+ Year Member



<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: [domain.ext"...] );
?>

briggidere

11:35 am on Jul 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



thanks angelis