Website redirect

A Place to idle the day away talking about anything you fancy. Expect to find cycling and non cycling topics inside

Re: Website redirect

Postby Ivor » Fri May 08, 2009 1:01 pm

Put a 301 redirect in the .htaccess file, thus:

Redirect 301 / http://address.of.other.site.here

Alternatively if your webserver doesn't support or isn't configured to support .htaccess (not sure what you're running) you could use a meta refresh on the index page:

<meta http-equiv="refresh" content="10; url=http://address.of.other.site/">

you can then have a friendly message in there saying the site is being redesigned, and that they'll be redirected.
User avatar
Ivor
lives on this board 24/7!!!
 
Posts: 1268
Joined: Wed Jan 23, 2008 5:10 pm
Location: Oxted, Surrey

Re: Website redirect

Postby Ivor » Fri May 08, 2009 1:07 pm

ah yes the .htaccess redirect will divert the whole site. forgot it was on the same domain.

you need to restrict the first match parameter in the .htaccess file.
you'll want:

Redirect 301 /index.html http://new.page.location
User avatar
Ivor
lives on this board 24/7!!!
 
Posts: 1268
Joined: Wed Jan 23, 2008 5:10 pm
Location: Oxted, Surrey


Return to General

Who is online

Users browsing this forum: No registered users and 45 guests

cron