Forum Moderators: coopster
Thanks for your help.
If your page used to be served as is and is now a redirect that may cause some hiccups with indexing.
Suddenly my site is no longer searched by Google
Do you mean that the site is not being spidered or that it is no longer in the index? There are no problems with using header to redirect but redirecting your main page is not really an ideal methodology.
Have ou thought about using include instead? I don't really understand why you would want to redirect straight away when someone hits the main page. Maybe a little more info would help us to give you a more concise answer.
There is another thread in here all about sending 301 headers to relist pages in Google at a new URI - search for "301 Google" and you ought to find it.
The PHP code looks something like this:
<?php
header("301 Moved Permanently");
header("Location:newURI.com/thispage.htm")
?>