|
|
 |
April 2nd, 2004, 04:13 AM
|
#1
|
|
New Member
Join Date: Apr 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
redirection problem
Hello guy's if somebody could help .......
i try to do the folowing
if you type in the adress bar the folowing URL www.test.com/test4/
i want the browser to open www.test.com/test.php?option=test4 but
the address should keep the same www.test.com/test4/(visualy meant)
any idea's
P.S And if a user types www.test.com/ all the time when he navigates the page,the address should not change www.test.com/ (the page must contain no frames)
|
|
|
April 2nd, 2004, 05:36 AM
|
#2
|
|
WebForumz Member
Join Date: Feb 2004
Location: Woodbridge, UK
Age: 28
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
why would you want to do that in the first place? Not to mention the fact that you cant do it without frames.
the best you could do is use: www.text.com/?option=test4 (thus removing the test. php part, assuming test. php is the default document.
|
|
|
April 2nd, 2004, 06:26 AM
|
#4
|
Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 113
|
The only cross-browser effective way to do this is to use frames...
However I am confused as to WHY anyone would want to do that? If anything it makes life harder - people can't bookmark your pages easily and all sorts of problems show up.
|
|
|
April 2nd, 2004, 02:26 PM
|
#5
|
Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 113
|
You can set up a custom 404 error page that examines the URL the person was trying to use, manipulates the string in the way you're thinking into a new URL, and then redirects it.
This may not be any faster.
|
|
|
April 3rd, 2004, 04:43 AM
|
#6
|
|
New Member
Join Date: Apr 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
ok tank's a lot guy's for you time. I will try the ideea that Catalyst wrote me if it work's i will notify you
|
|
|
April 3rd, 2004, 05:07 AM
|
#7
|
|
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Ok this is closed I know.. but I had a question.... Is PHP like ASP, where you can create a cookie in the homepage and then delete that cookie after the browser is closed? Then you can put on all other pages to check for that cookie and if it exists then give access and if it doesnt send to an error page? Just wondering.. Im still learning ASP by the way; so please be gentle.
|
|
|
April 3rd, 2004, 05:13 AM
|
#8
|
|
New Member
Join Date: Apr 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
yes i is but that does not solve the problem because my client want's no frames no cookies.
He sad "you no there are people that are setting there browser to not accept cookie's and to not accept frames.So please find another solution".So here i am. 
|
|
|
April 10th, 2004, 12:14 PM
|
#9
|
|
New Member
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
so you want a script that redirect you to somethin if you goto test.com/test4. Well an easy way is to rename the file that redirects to index and then wen u type in test.com/test4 it will run the redirecting file.
|
|
|
April 10th, 2004, 06:10 PM
|
#10
|
Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 113
|
No Si, he wants the redirecting to occur, but the address bar should show the first URL, not the redirected one.
|
|
|
April 11th, 2004, 03:12 AM
|
#11
|
Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 113
|
Oh, I didn't catch the showing the first URL part. In that case you want the custom 404 error page to use Server.Execute rather than Response.Redirect
|
|
|
April 11th, 2004, 04:55 AM
|
#12
|
|
New Member
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by Sirkent
No Si, he wants the redirecting to occur, but the address bar should show the first URL, not the redirected one.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
ah right, well im guessing frames then
|
|
|
April 11th, 2004, 05:48 AM
|
#13
|
Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 113
|
He said he didn't want to use frames [:P]
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|