473,395 Members | 1,730 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,395 software developers and data experts.

chaning URL / saving passw w form

Hi!

I need solution to change the url but not the page.

I need something like whan going to a site, the url changes to
whatever, but there is no page count, so I just get the new (right)
address, but when going back I go back to the page I came from.
Secondly I dont want a back-trap.

Why?

Say someone opens www.mysite.com, end is gives index.php to the clinet
- which enters a password and the browser offers to save that -
later, when logged out, the client is sent to www.mysite.com/index.php,
and the browser offers to save that password too... for another url,
but still the same page...

any ideas?
this is in use quite many places, but I just cannot figure how it
works...

WBR
Sonnich

Nov 13 '07 #1
3 1124
jodleren said the following on 11/13/2007 6:45 AM:
Hi!

I need solution to change the url but not the page.
Use a server Location header.
I need something like whan going to a site, the url changes to
whatever, but there is no page count, so I just get the new (right)
address, but when going back I go back to the page I came from.
Secondly I dont want a back-trap.
Don't try to use client-side script to solve a server-side issue.
Why?

Say someone opens www.mysite.com, end is gives index.php to the clinet
- which enters a password and the browser offers to save that -
later, when logged out, the client is sent to www.mysite.com/index.php,
and the browser offers to save that password too... for another url,
but still the same page...
That is because they are different URL's.
any ideas?
this is in use quite many places, but I just cannot figure how it
works...
Location headers on the server that when www.mysite.com is encountered
it redirects to www.mysite.com/index.php

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 13 '07 #2
On Nov 13, 8:27 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
jodleren said the following on 11/13/2007 6:45 AM:
I need solution to change the url but not the page.
Use a server Location header.
Thanks. That was what I was looking for!

Searched for it here and found out. Thanks again

WBR
Sonnich

Nov 14 '07 #3
Randy Webb wrote:
>
Location headers on the server that when www.mysite.com is encountered
it redirects to www.mysite.com/index.php
If your server is Apache....

a) The above is more usually done with DirectoryIndex command.

b) If you want your server to respond to mysite.com as www.mysite.com,
or the other way about, check out the ServerAlias command.

Regards

Ian
Nov 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: brettk | last post by:
Hello All, Here's what I'm trying to do: I need to connect to a pop3 server, download all messages, and copy all of the attachments into a specific directory. The actual email message is...
7
by: MacDermott | last post by:
For a client who wants answers, but doesn't want to bother to learn Access, I've built a cut-down query generator, where they can select fields and criteria. I then compose the appropriate SQL...
13
by: Stuart McGraw | last post by:
I haven't been able to figure this out and would appreciate some help... I have two tables, both with autonumber primary keys, and linked in a conventional master-child relationship. I've...
2
by: manning_news | last post by:
Has anyone had a problem with Access 2003 not saving their coding? I've been using 2003 for a couple of months now and just this week noticed that some coding I'd done for a database was not there...
11
by: kaosyeti | last post by:
i have a form that records 9 fields into a table. on that form i have a 'done' button to close the form. right now, if the form is fully filled in, but you don't press 'enter' before you click...
7
by: Marty | last post by:
Hi, I want to save the form position when the user close it. I tried to place the coordinate saving code in my destructor, but it is not triggered when I assign the form to null. Where...
3
by: Andy_Khosravi | last post by:
I'm having a problem with an entry form on one of my applications. It would appear that the save action is sometimes not working, and is generating no error when it fails. I'm hoping one of you may...
17
dbanning
by: dbanning | last post by:
I am trying to save the contents of a form as a bitmap and am unsure how to do this. I can use the savepicture command to save the form as a bitmap but the contents is not intact as you would expect....
9
by: Wingot | last post by:
Hey, I am using Visual Studio 2008 Beta 2 for some application development in C#, but I presume that the following question applies equally well to any environment.
10
by: yasmine | last post by:
Hi friends, I'm writing a login.php script. I stored the password in mysql db as encrypted format using md5. (It's in registration.php and it works well). There is a no problem in registering...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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,...

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.