Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Quickest/easiest way want to redirect entire site to single page?

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU
 
Angry Girl Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Jan-19-05 02:30 PM
Original message
Quickest/easiest way want to redirect entire site to single page?
Edited on Wed Jan-19-05 02:32 PM by Angry Girl
Hi,

I'd like to make it such that all pages on our website "redirect" to a single page (the one protesting Bush's inauguration tomorrow, as per
http://bushblackout.com).

The target page is in the same domain as the redirected pages. Although if this is a nightmare, then I suppose I could find another page outside that domain. What about a subdomain? I have a few of those?

What's the easiest/quickest way for me to do this? No, my site doesn't use CSS :-( and I don't want to have to go through every single page to redirect or whatever....



Anybody have any ideas?

Thanks!
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
kerouac Donating Member (288 posts) Send PM | Profile | Ignore Thu Jan-20-05 12:00 AM
Response to Original message
1. use htaccess

You should be able to use .htaccess in your main site folder with a redirect command.
Printer Friendly | Permalink | Reply | Top
 
Xithras Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jan-20-05 03:31 AM
Response to Original message
2. Delete the site and put the temp page in the 404 template
Deleting isn't actually required. You can also just change the sites base path to an empty folder. When the visitor requests a page, the server will be unable to find it and return a 404. If you've replaced the 404 template with your temporary page, they'll get that instead.

I've done this numerous times on IIS and once on IPlanet, and I'd assume that it will work on Apache as well (admittedly, I've never tried it though).
Printer Friendly | Permalink | Reply | Top
 
Angry Girl Donating Member (1000+ posts) Send PM | Profile | Ignore Thu Jan-20-05 03:18 PM
Response to Reply #2
3. thank you both!
After screwing up cpanel's redirect (by using the incorrect syntax * and then not being able to remove it!) I ended up playing with .htaccess.
But then it turned out I'm limited on the redirects with my account and since it's just a temp thing, I just swapped out a few pages. Inelegant and slow but it's done.... http://www.nightweed.com :-)

Thanks again!
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sun Dec 22nd 2024, 09:24 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC