I have been asked to take down a website, and as such have removed the files and placed a new index page with a ‘under construction’ message while the new site is being created. Old pages from the site still show up in google, but now resolve 403-Forbidden.
I want these to redirect to the under construction page. This will likely be in effect for a few weeks, at which point I will want to permanently redirect (301) those pages to cooresponding pages on the new site.
Is there an easy trick (.htaccess) to make this happen for me? Do I want a 303 redirect?
Any help would be greatly appreciated
EDIT
well thanks for the answers, I didn’t realize until now that this is not an Apache server so htacess will not work. The code in the answers will definitely come in handy in the future however. I’m gonna poke around a bit to look for a solution and will ask another question if I’m stumped.
Try this, redirects to index.php;