HighDots Forums  

Redirecting pages

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Redirecting pages in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Knut
 
Posts: n/a

Default Redirecting pages - 12-14-2007 , 03:00 AM






I want to redirect the old pages
www.aaa.no
to the new ones
www.bbb.no
where, by the way, the directory tree is quite different from the old one.
Suppose the webroot both in aaa and bbb is /www (unix/apache).
I can redirect every page in- and beneath the webroot with a .htaccess-file
like this:

Redirect 301 / http://www.bbb.no

(In this top page there are links making it possible to navigate to the new
place of the wanted info.)
Now to the point:
We have a virtual host www.beneath.no with its webroot in /www/beneath
*I want this to continue working*, but with the solution above, it will not.
Here all attempts to fetch pages in- or beneath the webroot, is redirected
to www.bbb.no

Anyone understand?

Thanks Knut




Reply With Quote
  #2  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: Redirecting pages - 12-14-2007 , 08:43 AM






On Fri, 14 Dec 2007, Knut wrote:

Quote:
I want to redirect the old pages
Ask in <news:comp.infosystems.www.servers.unix> .

Quote:
www.aaa.no
Don't fake addresses - use http://www.example.com/ .

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell


Reply With Quote
  #3  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: Redirecting pages - 12-14-2007 , 10:10 AM



On Fri, 14 Dec 2007, Petr Vileta wrote:

Quote:
META HTTP-EQUIV="REFRESH" CONTENT="5; URL=http://www.bbb.no"
Do not spread such nonsense!
http://www.w3.org/QA/Tips/reback

In general, never use any <meta http-equiv> !
Always use the real HTTP header.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.