Redirecting multiple webpages in a directory to one webpage.
With my site under construction, I want users to end up at my site that says something like "webpage is under construction," this would apply to every site they attempt to visit in my directory.
Is it possible to do this with javascript (I would like to avoid having to put redirecting codes in all the webpages in my directory, I have at most 100 pages in there, and I don't have the time to do it one after another, and I don't want this redirecting to conflict with the updating process).
Any suggestions?
Thanks!
Sabrina
Adam Oberdorfer posted this at 05:22 — 26th October 2000.
They have: 383 posts
Joined: Sep 2000
If your on Apache:
Use .htaccess to redirect all access requests in a directory to a specific page. You should be able to do it with:
Redirect /path/to/directory /path/to/underconstruction.html
/path/to/underconstruction.html can also be a HTTP URL.
SabrinaP posted this at 22:37 — 26th October 2000.
They have: 318 posts
Joined: Mar 1999
What if my server doesn't support Apache? Mine don't. Is there another way of accomplishing this?
Thanks,
Sabrina
Adam Oberdorfer posted this at 04:43 — 27th October 2000.
They have: 383 posts
Joined: Sep 2000
What web server are you using?
SabrinaP posted this at 14:41 — 27th October 2000.
They have: 318 posts
Joined: Mar 1999
it's redrival.com
... besides, I never even heard of Apache before.
[Edited by SabrinaP on 10-27-2000 at 10:56 AM]
Adam Oberdorfer posted this at 18:57 — 27th October 2000.
They have: 383 posts
Joined: Sep 2000
Sabrina,
Apache is the most popular web server available. Why? Because it’s free source and free to use for both personal and commercial purposes. (www.apache.org)
I would say it’s safe say there’s a 90% chance your web host is running Apache. But you’ll have to find out, as I don’t have any experience with redrival.com.
Good luck.
anti posted this at 17:27 — 7th November 2000.
They have: 453 posts
Joined: Jan 1999
Well,
at least netcraft says you are running apache:
http://uptime.netcraft.com/graph?display=uptime&site=redrival.com&find_site=GO
And they are usually right.
anti
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.