473,756 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

favorite with a different address

Hello,

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

...fussball.htm l

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 2169
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************ *****@yahoDELET ETHATo.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******@weddi ng.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
15723
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 1234, but each instance binds to a different ip address. that is to say: instance #1 binds to 192.168.1.5/port 1234 instance #2 binds to 192.168.1.6/port 1234 instance #3 binds to 192.168.1.7/port 1234
134
6109
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 different from C. I'm curious -- what is everyone's favorite trick from a non-python language? And -- why isn't it in Python? Here's my current candidate: So the other day I was looking at the language Lua. In Lua, you make a
40
4255
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 and space efficiencies on run-of-the-mill (read: 32 bit) microcomputers are important. I want to use some layer of abstraction comparable to C99's stdint.h so that my variable declarations specify the number of bits.
2
1808
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 that rankings beyond the first 3 were available and that the number of votes were shown. Nerds like numbers, not journalist blather :). I found this data for earlier years by Googling "linux journal <yyyy> readers choice awards". 2005
2
1955
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 project. I retried in the dark ages of computers, when I was in college, and got much further before realizing the same thing was taking place and shelved the project again. In hopes that this new PC technology may yeild something interesting. ...
10
1354
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 in range(len(format)): f = format trans = xlat.get(f,'None')
8
1477
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. int bops = 17; void* gPtr_1 = & bops; void* gPtr_2 = & bops; std::cout << gPtr_1 << std::endl;
6
2430
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 tools other than the one supported currently. I would like to learn which UML tools you use (if any), preferrably if it comes to modeling a Python application. So I'm asking you to tell me the name of your favorite UML CASE tool(s).
0
1285
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 takes lot more time to find the same URL again or most probably you will never find it again. http://www.LinkMemory.com, a FREE service that allows you to store these valuable links at one single point. Once you build your own
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10034
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9872
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9843
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.