List Info

Thread: Redirect different pages




Redirect different pages
user name
2006-03-29 16:49:28
John,
   I suggest you try Apache: The Definitive Guide by Laurie brothers.
 
regards,
tt


From: John Barrett [mailto:johnbarrhawaii.edu]
Sent: Wednesday, March 29, 2006 6:31 AM
To: usershttpd.apache.org
Subject: Re: [usershttpd] Redirect different pages

cool.
I was wondering if you know a good book on apache?
Johnny
On Mar 29, 2006, at 1:25 AM, Arturo Leon wrote:

hi, thanks for your help.

but i need redirect it with apache, no with html or javascript redirect code.

i m a new user for apache, too.  : (

Regards
Arturo

2006/3/29, John Barrett <hawaii.edu">johnbarrhawaii.edu>:
Hi,
In a web page you can use:
<re-direct.html&gt;
<html&gt;
  <head&gt;
 &nbsp;  <meta http-equiv="Refresh" content="1; URL= http://www.google.com" />
 &nbsp;  <title>Untitled Document&lt;/title>;
  </head&gt;
  <body&gt;
  </body&gt;
</html>

Where the meta tag, content="time in seconds{1 second in this case}" and URL where you want to go{google on this case}.
Make sure the meta tag inside the <head&gt;</head> tags.
I hope that this helps, really just html. I am so new to apache(yesterday) I think that I need to buy a book:(

Johnny

On Mar 28, 2006, at 11:22 PM, Arturo Leon wrote:

hi everyone,

please, how to redirect different pages with apache2? and how do can it?

example:  www.prueba.com redirect to www.example.com( example.com is my dafault page)

Regards
Arturo

Pd: sorry my english is no good. :P



Redirect different pages
user name
2006-03-30 04:49:00
Hi Arturo ,

If i rephrase your question,
You would be redirecting to a different url (www.example.com) to whoever connects to your webserver (www.prueba.com) . But you were asking for
redirecting to different pages ( that would generally mean to pages on the same server ) . You should understand they are different
as they would be performing different roles . Nevertheless one best way to achieve this has both the above mentioned roles possible .

Inside the apache2.conf file , at relevant place

Redirect Permanent /index.html http://example.com/index.html

This will redirect whoever connects to "www.prueba.com/index.html" to the new "www.example.com/index.html " . Used basically to redirect to different pages when the old pages has expired and needed to redirect .

Besides there are numerous other methods .
I suggest have a good read to :
http://httpd.apache.org/docs/2.0/

Regards..

"TAYLOR, TIM (CONTRACTOR)" <TIM.TAYLORDFAS.MIL&gt; wrote:
John,
 &nbsp; I suggest you try Apache: The Definitive Guide by Laurie brothers.
 
regards,
tt


From: John Barrett [mailto:johnbarrhawaii.edu]
Sent: Wednesday, March 29, 2006 6:31 AM
To: usershttpd.apache.org
Subject: Re: [usershttpd] Redirect different pages

cool.
I was wondering if you know a good book on apache?
Johnny
On Mar 29, 2006, at 1:25 AM, Arturo Leon wrote:

hi, thanks for your help.

but i need redirect it with apache, no with html or javascript redirect code.

i m a new user for apache, too.  : (

Regards
Arturo

2006/3/29, John Barrett <hawaii.edu">johnbarrhawaii.edu>:
Hi,
In a web page you can use:
<re-direct.html&gt;
<html&gt;
  <head&gt;
 &nbsp;  <meta http-equiv="Refresh" content="1; URL= http://www.google.com" />
 &nbsp;  <title>Untitled Document&lt;/title>;
  </head&gt;
  <body&gt;
  </body&gt;
</html>

Where the meta tag, content="time in seconds{1 second in this case}" and URL where you want to go{google on this case}.
Make sure the meta tag inside the <head&gt;</head> tags.
I ho pe that this helps, really just html. I am so new to apache(yesterday) I think that I need to buy a book:(

Johnny

On Mar 28, 2006, at 11:22 PM, Arturo Leon wrote:

hi everyone,

please, how to redirect different pages with apache2? and how do can it?

example:  www.prueba.com redirect to www.example.com( example.com is my dafault page)

Regards
Arturo

Pd: sorry my english is no good. :P






Sanjay Saha
Senior System Administrator
http://www.sanjaysaha.in

Cel=+919830223862


To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )