May 29, 201214 yr I have a small website and need a temporary "events" page for the next three months. While adding this is no problem, what is the best way to remove this from the net ? Will I need to use a 301 redirect or is there another way. At the moment I'm on a server package which doesn't allow the use of .htaccess. Many thanks for any advice. Paul
May 31, 201214 yr So long as you still have an index page, just be a redirect at the top of the page to the page you want to display. You will need to change your index filetype to .php to use this, but your new index.php page should look a little like this: <?php header( 'Location: http://www.yoursite.com/events.html' ) ; ?> <html> <head> blahblahblahstylesheetblahblahblah </head> <body> Redirecting... </body> Hope this helps! Danai
May 31, 201214 yr Although Danai is close, the correct way is to do this: <php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.newdomain.com/page.html"); exit(); ?> It's telling Google that the page has no permanently moved to a different location. Then I'd look at changing hosts. EDIT: I say correct, but what I mean is this the best 301 redirect solution in your current situation
Create an account or sign in to comment