RE: [users@httpd] Redirect different pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.TAYLOR@xxxxxxxx> wrote:
John,
   I suggest you try Apache: The Definitive Guide by Laurie brothers.
 
regards,
tt


From: John Barrett [mailto:johnbarr@xxxxxxxxxx]
Sent: Wednesday, March 29, 2006 6:31 AM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] 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 <johnbarr@xxxxxxxxxx>:
Hi,
In a web page you can use:
<re-direct.html>
<html>
  <head>
    <meta http-equiv="Refresh" content="1; URL="" href="http://www.google.com" target="_blank"> http://www.google.com" />
    <title>Untitled Document</title>
  </head>
  <body>
  </body>
</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></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.
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux