Search
Thursday, September 09, 2010 ..:: Forum ::.. Register  Login
 IT-Talks Forum Minimize
:: Home » Scripting » Redirecten van een gehele website
Author Messages
nicky

Posts : 57
Location : West-Vlaanderen - Az Alma Hospital
Posted : 3/19/2008 12:12:18 PM  

Best It-talkers,

Is het mogelijk om iets te voorzien indien men vb. naar www.test.be/abc.html of www.test.be of via google www.test.be/az/test.html gaat dat je altijd geredirect wordt naar bv. www.nicky.be, zonder enige broken link "page not found"?

De website op vb. www.test.be/... gaat volledig weg,
het kan dus niets zijn die in pagina's zelf dient te gebeuren.
Er moet eigenlijk onmiddellijk een doorverwijzing zijn naar ander domain.

Onderstaande toepassing kan ik niet gebruiken daar je moet wachten op google up-to-date wordt -> d.w.z. dat je met broken linken zit.

Hopelijk kan iemand me verder helpen.

How to implement the 301 Redirect

1. To create a .htaccess file, open notepad, name and save
the file as .htaccess (there is no extension).

2. If you already have a .htaccess file on your server,
download it to your desktop for editing.

3. Place this code in your .htaccess file:

redirect 301 /old/old.htm http://www.you.com/new.htm

4. If the .htaccess file already has lines of code in it,
skip a line, then add the above code.

5. Save the .htaccess file

6. Upload this file to the root folder of your server.

7. Test it by typing in the old address to the page you've
changed. You should be immediately taken to the new
location.

Notes: Don't add "http://www" to the first part of the
statement - place the path from the top level of your site
to the page. Also ensure that you leave a single space
between these elements:

redirect 301 (the instruction that the page has moved)

/old/old.htm (the original folder path and file name)

http://www.you.com/new.htm (new path and file name)

When the search engines spider your site again they will
follow the rule you have created in your .htaccess file.
The search engine spider doesn't actually read the
.htaccess file, but recognizes the response from the
server as valid.

During the next update, the old file name and path will be
dropped and replaced with the new one. Sometimes you may
see alternating old/new file names during the transition
period, plus some fluctuations in rankings. According to
Google it will take 6-8 weeks to see the changes reflected
on your pages.

Greetings, Nicky
Tom

Administrator
Posts : 47
Location : N/A
Posted : 3/26/2008 2:19:15 PM  

Hallo Nicky,

lang geleden dat we u nog gezien hebben ;-)

Mijn eerste vraag gaat het hier om redirecten van uw interne gebruikers die naar een externe site gaan of gaat het om externe mensen redirecten?

In ieder geval 2 potentiële opties:

1) voeg een DNS entry toe voor www.test.be op uw interne DNS servers en zo redirecten naar het nieuwe ip. Zo moe je niet wachten op TTL's,... en kan je zelf sturen

2) Als je een ISA hebt kan je een simpele redirector instellen maar 'k weet natuurlijk niet of je ISA staan hebt.

 

mvg

Tom

« Previous   1 / 1   Next »

  

Copyright 2005 by Tom Decaluwé   Terms Of Use  Privacy Statement