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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect only first access

Status
Not open for further replies.

Tracey

Programmer
Oct 16, 2000
690
NZ
Hi all

I run Apache on Windoze, and i have redirects to enable shorter urls eg the user can type in to be redirected to
I am wanting to redirect all requests to myapp to a page notifying of future planned downtimes, however i also need to cover those people who use the full url.

I redirect to a html page which gives the textual notice, and a link to continue to the application.

However, i cant figure out how to do this without an endless loop of redirect to html page:

<code>
Redirect permanent /myapp redirect permanent /cgi-bin/myapp.exe </code>

<code>
<body>
<h2>IMPORTANT NOTICE
</h2>
<div>
<p>This site will be undergoing some routine maintenance on Tuesday 28th August.</p><p>
Applications will be temporarily inaccessible. </p>
<p>We apologise for the inconvenience.</p>
</div>

<p><a href="../cgi-bin/myapp.exe">>>>CONTINUE</a></p>
</body>

</code>

What is the best way to do this without having this endless loop?? I dont use session states in apache.


Tracey
Remember... True happiness is not getting what you want...

Its wanting what you have got!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top