httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Burden" <...@burden.ca>
Subject Re: [users@httpd] Single file to be served irrespective of the url
Date Fri, 07 May 2004 16:09:28 GMT
Using mod_rewrite:
RewriteEngine on
RewriteRule .* catalog.html

Using Redirect:
RedirectMatch .* http://yoursite/catalog.html
(very inefficient)

But using the custom ErrorDocument as suggested is possibly most efficient.
----- Original Message ----- 
From: "John Ellingsworth" <jellings@mail.med.upenn.edu>
To: <users@httpd.apache.org>
Sent: Friday, May 07, 2004 8:55 AM
Subject: RE: [users@httpd] Single file to be served irrespective of the url


> Are you using a scripting language?
>
> You could write (depending on your script language)
>
> If (!($thispage)) == "catalog.html"
> {
> <META HTTP-EQUIV=Refresh CONTENT="0; URL=http://mywebsite/catalog.html">
> }
>
> I unfortunately don't know the apache answer :(
> Sorry.
>
> Thanks,
>
> John Ellingsworth
> http://mail.med.upenn.edu/~jellings/
> AIM: vc2000support
>
> -----Original Message-----
> From: mseethar [mailto:mseethar@employees.org]
> Sent: Friday, May 07, 2004 7:15 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] Single file to be served irrespective of the url
>
>
> Hi folks,
> I have a requirement to configure the apache to serve a file
> called catalog.html, irrespective of the url that is being requested.
> Could somebody help me out how to do this?
>
> Thanks,
>   - Madhu
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message