Click here to get back home

Redirecting pages

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Redirecting pages Knut 12-14-2007
Get Chitika Premium
Posted by Knut on December 14, 2007, 4:00 am
Please log in for more thread options
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




Posted by Petr Vileta on December 14, 2007, 10:13 am
Please log in for more thread options
Knut wrote:
> 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
Simply rename index.html or index.php or what is the homepage on old web to
index1.* and create new index.html with this content

<html><head>
<META HTTP-EQUIV="REFRESH" CONTENT="5; URL=http://www.bbb.no">
[... other head tags ...]
</head>
<body>
Our pages was be moved. If you will not be redirected in 5 seconds please
click
<a href="http://www.bbb.no">here</a>
</body></html>

You can use your old web but must type full URL
http://www.beneath.no/index1.html
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>


Similar ThreadsPosted
mod_rewrite : redirecting all pages to another set October 6, 2008, 11:58 am
Redirecting a blog July 17, 2005, 2:31 pm
Redirecting to the same webspace but different domain January 11, 2006, 6:45 pm
Redirecting double-slash ("//") URLs to single-slash ("/") URLs July 3, 2008, 6:42 pm
Tax pages September 29, 2005, 11:59 am
Changing all pages at once? July 23, 2004, 1:34 pm
labels in web pages September 15, 2004, 3:19 pm
Transitions Between Pages January 24, 2005, 1:05 pm
lop-sided pages -- why? April 8, 2005, 8:12 am
Panable pages May 8, 2005, 6:23 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap