Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 21st, 2000, 03:52 PM
Pulsorocker Pulsorocker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: bayamon
Posts: 2 Pulsorocker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello,
I'll be working on a page (cgi based page) and I don't want users to access the page when I'll be working on it.
I was wandering, because I once read that I can redirect an user using .htaccess, but I don't remember.

For example the page that I'll be working is: www.domain.com/cgi-bin/folder/document.pl
(it also can be www.domain.com/cgi-bin/folder/document.pl?anything=somethin&something=anything)

And I want to redirect them to: www.domain.com/untercontruction.html

If any one can help me on this, I'll be very grateful

Merry Christmas

Reply With Quote
  #2  
Old December 21st, 2000, 05:38 PM
oskar oskar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 222 oskar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 40 sec
Reputation Power: 8
Send a message via ICQ to oskar
Couldn't you just make and index-file that redirects? Or does your work have to be named index.*?
Steffen

Reply With Quote
  #3  
Old December 22nd, 2000, 11:56 AM
Pulsorocker Pulsorocker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: bayamon
Posts: 2 Pulsorocker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Actually I need to specify the file that I want that when people try access it, it redirects them to the temporary file.
Because most people enter to the file directly.

Reply With Quote
  #4  
Old December 22nd, 2000, 05:38 PM
oskar oskar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 222 oskar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 40 sec
Reputation Power: 8
Send a message via ICQ to oskar
Be ready for someting stupid but simple:

Make your file to say -

"if no id ->redirect to the url
else ->
print the page"

Then your new files has a wrong link:

index.pl?ID=Pusloroker

which has to be changed. But here you can use Arachnophilia (my favoriteprogram in this case) to make the changes.
I know it sounds stupid doing it this way, but it works.

Two times before!, have I changed 300 pages in that way (before I started with php!) using Arachnophilia, and it took less than 5 minutes on my K6-300 with 96Mb memory and a slow harddisk. Which is the reason for me, to make this stupid suggesting )

But anyway, I also remember something about having access file to redirect, but I can't find it again.
Steffen


Reply With Quote
  #5  
Old December 26th, 2000, 07:58 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>I need to specify the file that I want that when people try access it

Start here -> http://httpd.apache.org/docs/mod/core.html#locationmatch (if you have write access to httpd.conf)

If you don't, then start here -> http://httpd.apache.org/docs/mod/core.html#filesmatch

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > .htaccess for page redirect


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway