473,390 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 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 2146
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
134
by: Joseph Garvin | last post by:
As someone who learned C first, when I came to Python everytime I read about a new feature it was like, "Whoa! I can do that?!" Slicing, dir(), getattr/setattr, the % operator, all of this was very...
40
by: Matt | last post by:
Please skip to the last paragraph if you are in a hurry. Some of the integer variables in my application will need to hold values bigger than 2^32-1. Others won't need to be that big. Time...
2
by: beliavsky | last post by:
Linux Journal annually polls its readers on questions such as their favorite programming language. In the 2005 poll, Python is 2nd, its highest ranking ever. Below are the results by year. I wish...
2
by: Les | last post by:
In ancient times I had a desire to make a game and I started to do so, I quickly found the project was beyond the hardware's capability for that era (even in assembler) and had to shelf the...
10
by: RickMuller | last post by:
One of my all-time favorite scripts is parseline, which is printed below def parseline(line,format): xlat = {'x':None,'s':str,'f':float,'d':int,'i':int} result = words = line.split() for i...
8
by: The Cool Giraffe | last post by:
I'm playing around with pointers trying to figure out how the operator & works. My impression was that it can be used to create a pointer to a thingy. So, i created the following code and ran it....
6
by: Anastasios Hatzis | last post by:
Hello, I'm working on the light-weight MDA tool pyswarm, http://pyswarm.sourceforge.net/ (it is about a code-generator for Python/PostgreSQL-based software. I plan to add support of UML CASE...
0
by: LinkMemory | last post by:
It is the innovative way of keeping all your Favorite URLs on the web. http://www.linkmemory.com You come across many new websites each day. You forget it as soon as you close your browser. It...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.