471,598 Members | 1,171 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,598 software developers and data experts.

favorite with a different address

Hello,

I have a site for the collegue with a football winning game.

...fussball.html

there I redirect the user to an cgi-page

../f11.cgi
>From time to time I change the cgi-pages,
so the redirection goes to
.../f12.cgi

The problem:
The user save the address in a favorite.
But in the favorite the cgi-page is save.

Is it possible to change the display address in the browser address
bar
or
is it possible to prepare the settings of of the favorite.

---
Thanks
Frank Iversen

Nov 2 '07 #1
4 2083
fiversen wrote:
Hello,

I have a site for the collegue with a football winning game.

..fussball.html

there I redirect the user to an cgi-page

../f11.cgi
>From time to time I change the cgi-pages,
so the redirection goes to
.../f12.cgi
If I understand correctly, fussball.html is a page that sometimes
redirects to f11.cgi, and sometimes f12.cgi, and your problem is that,
people should bookmark fussball.html, but actually bookmark either f11.cgi
or f12.cgi.

This is the difference between HTTP 301 and HTTP 302 redirections.

HTTP 301 for fussball.html would mean: Resource moved to f11.cgi (or
f12.cgi), forever. Don't use anymore fussball.html, bookmark f11.cgi (or
f12.cgi).
This is not what you want.
You want a HTTP 302.

HTTP 302 means: fussball.html is the right name for the resource, however,
for this current access, you should look at f11.cgi (or f12.cgi). If
you've to bookmark the page, please, bookmark fussball.html, not f11.cgi
(or f12.cgi).

So, an HTTP 302 redirection is exactly what you need.

The fact that buggy user agents tend to interpret HTTP 302 as if it were
HTTP 301 redirections is a real problem. If you want to support these
buggy user agents, you may on the server side, dump the contents of the
data produced by f11.cgi or f12.cgi when the fussball.html resource is
requested, without any redirection.

Please, read:
http://www.w3.org/Protocols/rfc2616/...0.html#sec10.3
http://www.w3.org/DesignIssues/UserAgent.html

--
If you've a question that doesn't belong to Usenet, contact me at
<ta*****************@yahoDELETETHATo.fr>
Nov 2 '07 #2
Thanks a lot,
I try the following .htaccess:
---
RewriteEngine On
RewriteRule fussball3.html ...../cgi-bin/f11.cgi [R=307]
---

The redirection is ok
- but the display an the saved favorites - have the f11.cgi - page.

The patch of the output - thats nothing for me.

If I understand correctly, fussball.html is a page that sometimes
redirects to f11.cgi, and sometimes f12.cgi, and your problem is that,
people should bookmark fussball.html, but actually bookmark either f11.cgi
or f12.cgi.

This is the difference between HTTP 301 and HTTP 302 redirections.

HTTP 301 for fussball.html would mean: Resource moved to f11.cgi (or
f12.cgi), forever. Don't use anymore fussball.html, bookmark f11.cgi (or
f12.cgi).
This is not what you want.
You want a HTTP 302.

HTTP 302 means: fussball.html is the right name for the resource, however,
for this current access, you should look at f11.cgi (or f12.cgi). If
you've to bookmark the page, please, bookmark fussball.html, not f11.cgi
(or f12.cgi).

So, an HTTP 302 redirection is exactly what you need.

The fact that buggy user agents tend to interpret HTTP 302 as if it were
HTTP 301 redirections is a real problem. If you want to support these
buggy user agents, you may on the server side, dump the contents of the
data produced by f11.cgi or f12.cgi when the fussball.html resource is
requested, without any redirection.

Please, read:http://www.w3.org/Protocols/rfc2616/...UserAgent.html
--
Frank Iversen
Nov 4 '07 #3
fiversen <fi******@wedding.in-berlin.dewrites:
Thanks a lot,
I try the following .htaccess:
Good for you. So, what was your HTML question?

sherm--

--
WV News, Blogging, and Discussion: http://wv-www.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
Nov 4 '07 #4
The question is still,

is it possible automaticly to create a user favorite with a different
adress.
>From my page
... fussball.html
I redirect to
f11.cgi.
(with 'RewriteRule fussball3.html ...../cgi-bin/f11.cgi [R=307]' or
R=302])

The redirection page change from time to time,
so I want to create a favorite with the first page.
Good for you. So, what was your HTML question?

sherm--

--
WV News, Blogging, and Discussion:http://wv-www.com
Cocoa programming in Perl:http://camelbones.sourceforge.net
--
Frank Iversen
Nov 5 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

21 posts views Thread by Alexander N. Spitzer | last post: by
134 posts views Thread by Joseph Garvin | last post: by
2 posts views Thread by beliavsky | last post: by
2 posts views Thread by Les | last post: by
8 posts views Thread by The Cool Giraffe | last post: by
6 posts views Thread by Anastasios Hatzis | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.