Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Content redirection in apache

Status
Not open for further replies.

elgo

Technical User
Jun 27, 2004
13
US
Hi guys,

I have installed apache version 2.x, I want to redirect all the contents to be redirected to index.html. Even if some users have bookmarked some URL when they hit the page should be redirected to index.html. Basically I want to block the whole site with some splash page.

Note: I do not want to redirect to anyother server or any other domain.

Your solutions are appreciated.
 
I'm confused.

Why have any pages on the site, if nobody can see them?

 
SimonDavis,

Well, New users can not see other index.html page. But If someone have already bookmarked with a specific URL they will be able to reach the page directly. I want to block that traffic also and redirect to index.html. You got me?

 
Not really - if you don't want ANYBODY to see the pages, why have them there - like someone suggested, change your .htaccess file so that a 404 page not found just pops up the index, provided the page they're looking for doesn't exist.

I'm sure I'm missing the point though . . .

Alternatively, you could set all the page permissions to something restrictive, and use the same method to redirect a 403 error to the index. Then at least you could give selected people access to the pages.


 
Still, I did not get answer to my question. I do not want to touch any of the content, not even a single file. I do not want to remove any file. I just want to redirect all the pages to index.html where I will replace the index.html page with maintenance page. I do not care about 404 errors.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top