You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Roland Tarver <ro...@applegate.co.uk> on 2003/02/04 12:44:19 UTC
[users@httpd] redirecting requests for an old.html file to a new.html file?
Hi,
Which is the best method of redirecting requests for an old.htm file to
the new.htm file in apache 1.3?
Thanks and best wishes.
Roland Tarver
---------------------------------------------------------------------
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
Re: [users@httpd] applet problem
Posted by Sander Holthaus - Orange XL <in...@orangexl.com>.
OK, well, by the looks of it, it's not an Apache problem (if this is all). I
only see 301's (you might wanna change that) and 304's (which means that the
browser doesn't need to doenload anything since it has a similiar copy in
cache).
But , I cannot be sure. But the last request points to
/drawingtool/drawtoolr.class where the request before that point to
/drawingtool/drawtool.class . There is a difference in in filename's.
With my limited knowledge of Java I cannot help you much further, but it
doesn't look like a Apache problem. The browser already seems to have what
it is requesting from Apache (the 304's). I think the problem could lie in
your HTML-code.
Kind Regards,
Sander Holthaus
----- Original Message -----
From: "Paul Muad`dib" <uz...@gmx.net>
To: <us...@httpd.apache.org>
Sent: Wednesday, February 05, 2003 2:14 AM
Subject: Re: [users@httpd] applet problem
> I did already and here you can see it....
> 211.72.XXX.XXX - - [05/Feb/2003:09:09:06 +0800] "GET /drawingtool
HTTP/1.1"
> 301 326 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Crazy
> Browser 1.0.5)"
> 211.72.XXX.XXX - - [05/Feb/2003:09:09:07 +0800] "GET /drawingtool/
HTTP/1.1"
> 304 0 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Crazy
Browser
> 1.0.5)"
> 211.72.XXX.XXX - - [05/Feb/2003:09:09:10 +0800] "GET
> /drawingtool/drawtool.class HTTP/1.1" 304 0 "-" "Mozilla/4.0 (compatible;
> MSIE 6.0; Win32)"
> 211.72.XXX.XXX - - [05/Feb/2003:09:10:11 +0800] "GET
> /drawingtool/drawtoolr.class HTTP/1.1" 304 0 "-" "Mozilla/4.0 (compatible;
> MSIE 6.0; Windows NT 5.1; Crazy Browser 1.0.5)"
>
> ( the last is were I requested it directly for d/l and it worked )
>
> So when I saw that I again checked it with appletviewer ( locally ) and it
> worked....
>
> Any ideas ?
>
> Paul
>
> ----- Original Message -----
> From: "Sander Holthaus - Orange XL" <in...@orangexl.com>
> To: <us...@httpd.apache.org>
> Sent: Wednesday, February 05, 2003 7:59 AM
> Subject: Re: [users@httpd] applet problem
>
>
> > You should look in your access/error logs to see what is actually
> requested.
> >
> > ----- Original Message -----
> > From: "Paul Muad`dib" <uz...@gmx.net>
> > To: <us...@httpd.apache.org>
> > Sent: Tuesday, February 04, 2003 7:32 PM
> > Subject: [users@httpd] applet problem
> >
> >
> > > Dear All,
> > >
> > > I have a strange problem with providing applets on Apache.
> > > I tested the applet already with the appletviewer and it works
> perfectly.
> > >
> > > I have a subdir created like drawingtool so the url to call it would
be
> > > http://mysite.com/drawingtool
> > > In there is a index.html with this code ( snippet ):
> > >
> > > <APPLET CODE=drawtool.class ARCHIVE=drawtool.jar WIDTH=800 HEIGHT=600
>
> > >
> > > </APPLET>
> > >
> > > But when I call this site it tells me that the drawtool.class is not
> found
> > > ...
> > > Even without putting all the class files into the jar ( and of course
> > > removing the ARCHIVE part ) it doesn't work...
> > >
> > > Any ideas ?
> > >
> > > Thnx in advance ....
> > >
> > > Paul
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
>
>
---------------------------------------------------------------------
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
Re: [users@httpd] applet problem
Posted by Paul Muad`dib <uz...@gmx.net>.
I did already and here you can see it....
211.72.XXX.XXX - - [05/Feb/2003:09:09:06 +0800] "GET /drawingtool HTTP/1.1"
301 326 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Crazy
Browser 1.0.5)"
211.72.XXX.XXX - - [05/Feb/2003:09:09:07 +0800] "GET /drawingtool/ HTTP/1.1"
304 0 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Crazy Browser
1.0.5)"
211.72.XXX.XXX - - [05/Feb/2003:09:09:10 +0800] "GET
/drawingtool/drawtool.class HTTP/1.1" 304 0 "-" "Mozilla/4.0 (compatible;
MSIE 6.0; Win32)"
211.72.XXX.XXX - - [05/Feb/2003:09:10:11 +0800] "GET
/drawingtool/drawtoolr.class HTTP/1.1" 304 0 "-" "Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; Crazy Browser 1.0.5)"
( the last is were I requested it directly for d/l and it worked )
So when I saw that I again checked it with appletviewer ( locally ) and it
worked....
Any ideas ?
Paul
----- Original Message -----
From: "Sander Holthaus - Orange XL" <in...@orangexl.com>
To: <us...@httpd.apache.org>
Sent: Wednesday, February 05, 2003 7:59 AM
Subject: Re: [users@httpd] applet problem
> You should look in your access/error logs to see what is actually
requested.
>
> ----- Original Message -----
> From: "Paul Muad`dib" <uz...@gmx.net>
> To: <us...@httpd.apache.org>
> Sent: Tuesday, February 04, 2003 7:32 PM
> Subject: [users@httpd] applet problem
>
>
> > Dear All,
> >
> > I have a strange problem with providing applets on Apache.
> > I tested the applet already with the appletviewer and it works
perfectly.
> >
> > I have a subdir created like drawingtool so the url to call it would be
> > http://mysite.com/drawingtool
> > In there is a index.html with this code ( snippet ):
> >
> > <APPLET CODE=drawtool.class ARCHIVE=drawtool.jar WIDTH=800 HEIGHT=600 >
> >
> > </APPLET>
> >
> > But when I call this site it tells me that the drawtool.class is not
found
> > ...
> > Even without putting all the class files into the jar ( and of course
> > removing the ARCHIVE part ) it doesn't work...
> >
> > Any ideas ?
> >
> > Thnx in advance ....
> >
> > Paul
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
Re: [users@httpd] applet problem
Posted by Sander Holthaus - Orange XL <in...@orangexl.com>.
You should look in your access/error logs to see what is actually requested.
----- Original Message -----
From: "Paul Muad`dib" <uz...@gmx.net>
To: <us...@httpd.apache.org>
Sent: Tuesday, February 04, 2003 7:32 PM
Subject: [users@httpd] applet problem
> Dear All,
>
> I have a strange problem with providing applets on Apache.
> I tested the applet already with the appletviewer and it works perfectly.
>
> I have a subdir created like drawingtool so the url to call it would be
> http://mysite.com/drawingtool
> In there is a index.html with this code ( snippet ):
>
> <APPLET CODE=drawtool.class ARCHIVE=drawtool.jar WIDTH=800 HEIGHT=600 >
>
> </APPLET>
>
> But when I call this site it tells me that the drawtool.class is not found
> ...
> Even without putting all the class files into the jar ( and of course
> removing the ARCHIVE part ) it doesn't work...
>
> Any ideas ?
>
> Thnx in advance ....
>
> Paul
>
>
>
>
> ---------------------------------------------------------------------
> 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
[users@httpd] applet problem
Posted by Paul Muad`dib <uz...@gmx.net>.
Dear All,
I have a strange problem with providing applets on Apache.
I tested the applet already with the appletviewer and it works perfectly.
I have a subdir created like drawingtool so the url to call it would be
http://mysite.com/drawingtool
In there is a index.html with this code ( snippet ):
<APPLET CODE=drawtool.class ARCHIVE=drawtool.jar WIDTH=800 HEIGHT=600 >
</APPLET>
But when I call this site it tells me that the drawtool.class is not found
...
Even without putting all the class files into the jar ( and of course
removing the ARCHIVE part ) it doesn't work...
Any ideas ?
Thnx in advance ....
Paul
---------------------------------------------------------------------
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
Re: [users@httpd] redirecting requests for an old.html file to a
new.html file?
Posted by Roland Tarver <ro...@applegate.co.uk>.
That's great. Thanks a lot.
Roland
Nelson Goforth wrote:
> That would seem to be a simple AliasMatch directive in your httpd.conf
> or .htaccess. Check the documentation at:
>
> http://httpd.apache.org/docs/mod/mod_alias.html
>
> And if that doesn't work (if it's a more complicated re-routing) look
> under mod_Rewrite in the documentation.
>
> Nelson
>
>
> On Tuesday, February 4, 2003, at 04:44 AM, Roland Tarver wrote:
>
>> Hi,
>>
>> Which is the best method of redirecting requests for an old.htm file
>> to the new.htm file in apache 1.3?
>>
>> Thanks and best wishes.
>>
>> Roland Tarver
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
> ******************************************************************************
> This email has been virus checked by the Eclipse Internet MAILsafe
> service
> ******************************************************************************
> www: http://www.eclipse.net.uk/ email:
> eclipse@eclipse.net.uk
> ******************************************************************************
>
>
---------------------------------------------------------------------
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
Re: [users@httpd] redirecting requests for an old.html file to a new.html file?
Posted by Nelson Goforth <ng...@earthnet.net>.
That would seem to be a simple AliasMatch directive in your httpd.conf
or .htaccess. Check the documentation at:
http://httpd.apache.org/docs/mod/mod_alias.html
And if that doesn't work (if it's a more complicated re-routing) look
under mod_Rewrite in the documentation.
Nelson
On Tuesday, February 4, 2003, at 04:44 AM, Roland Tarver wrote:
> Hi,
>
> Which is the best method of redirecting requests for an old.htm file
> to the new.htm file in apache 1.3?
>
> Thanks and best wishes.
>
> Roland Tarver
>
>
> ---------------------------------------------------------------------
> 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