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

Redirect without changing `address` in your browser?

header("Location: http://www.example.com/");

i don't want the browser to show http://www.example.com

any method?

thanks.

Oct 5 '06 #1
12 27795
<ho******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
header("Location: http://www.example.com/");

i don't want the browser to show http://www.example.com

any method?

<?php

include('http://www.example.com/');
exit();

?>
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
sp**@outolempi.net || Gedoon-S @ IRCnet || rot13(xv***@bhgbyrzcv.arg)
Oct 5 '06 #2
Hmm Uzytkownik <ho******@gmail.comwrote:
header("Location: http://www.example.com/");
its same what you will type address in url filed in webbrowser and you won't
see it :)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

2be || !2be $this =mysql_query();
Oct 5 '06 #3
Hmm Kimmo Laine <sp**@outolempi.netwrote:
include('http://www.example.com/');
exit();
exactly
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

2be || !2be $this =mysql_query();
Oct 5 '06 #4

Kimmo Laine 寫é“:
<ho******@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
header("Location: http://www.example.com/");

i don't want the browser to show http://www.example.com

any method?


<?php

include('http://www.example.com/');
exit();

?>
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
sp**@outolempi.net || Gedoon-S @ IRCnet || rot13(xv***@bhgbyrzcv.arg)
i can't use include() as the file is very large, i want apache to serve
the file, while hiding the file path.

Oct 5 '06 #5
Hmm U¿ytkownik <ho******@gmail.comwrote:
i can't use include() as the file is very large, i want apache to
serve the file, while hiding the file path.

readfile will print all what is on this page on your page

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

2be || !2be $this =mysql_query();
Oct 5 '06 #6
i don't want the browser to showhttp://www.example.com

Yes, just use Rewrite-Rules with "P" flag like this:

RewriteRule ^(.*)$ http://www.example.com$1 [P,L]

Not perfect, but a solution.

Oct 5 '06 #7
ho******@gmail.com:
header("Location: http://www.example.com/");

i don't want the browser to show http://www.example.com
My browser's address bar shows the URL of the current resource.

The solution to your perceived problem is stop wanting that.

The real question is why.

--
Jock

Oct 5 '06 #8

ph********@googlemail.com 寫é“:
i don't want the browser to showhttp://www.example.com

Yes, just use Rewrite-Rules with "P" flag like this:

RewriteRule ^(.*)$ http://www.example.com$1 [P,L]

Not perfect, but a solution.
Hello, this seems to be my solution...

but will there be any overhead in doing this? i mean the proxy pass?

Oct 5 '06 #9
ho******@gmail.com wrote:
ph********@googlemail.com 寫é“:

>>>>>i don't want the browser to showhttp://www.example.com

Yes, just use Rewrite-Rules with "P" flag like this:

RewriteRule ^(.*)$ http://www.example.com$1 [P,L]

Not perfect, but a solution.


Hello, this seems to be my solution...

but will there be any overhead in doing this? i mean the proxy pass?
I see someone else beat me to it - I was going to suggest the same thing :-)

Yes, there's always overhead when you're changing the default behavior.
There is less if you place this in the httpd.conf file than in
..htaccess, but it's still there.

The biggest problem with .htaccess is it needs to be read every time a
file in this directory or any subdirectory is accessed. But for
something this small it will probably be cached by the file system most
of the time anyway, so it wouldn't make a lot of difference.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Oct 5 '06 #10
NC
On Oct 5, 2:10 am, howac...@gmail.com wrote:
>
header("Location:http://www.example.com/");

i don't want the browser to show http://www.example.com

any method?
Use URL rewriting.

Cheers,
NC

Oct 5 '06 #11
but will there be any overhead in doing this? i mean the proxy pass?I see someone else beat me to it - I was going to suggest the same thing :-)
The largest overhead in this "solution" is that every request goes over
your webserver and so your traffic will grow.

Oct 6 '06 #12
thanks for theses postings?

regards
Jitendra

Oct 9 '06 #13

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

Similar topics

1
by: Damo | last post by:
Could someone please help me. I am a newbie at PHP. I downloaded formail.php Version 5.0 from Jacks scripts( http://www.dtheatre.com/scripts/ )and changed the required areas to my email address and...
6
by: Tim Stokes | last post by:
Hi all, I want to do a similar action to response.redirect ("file.htm"). But the file.htm contains some sensitive data. I have placed file.htm in a folder in the InetPub...
6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
11
by: Stephen | last post by:
I was wondering if someone can help me with an web application design problem. I have a aspx page which builds up an arraylist called addresses and outputs the values in the arraylist items to a...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
6
by: Peter Row | last post by:
Hi, I am writing a DLL in VB.NET that implements IHttpHandler.ProcessRequest. This code calls a sub and I need to know if that sub did a response redirect or not. Specifically I need to know...
10
by: Bill | last post by:
In file FIRST.ASP, I've got <% Response.Redirect "SECOND.ASP" %> The redirect is happening, and I'm seeing the content from SECOND.ASP in the browser, but the URL in the browser is still...
56
by: UKuser | last post by:
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my...
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
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...
0
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,...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.