D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Apache redirects advice

 

On Sun, 2014-08-10 at 12:25 +0100, Simon Avery wrote:
> Hi Kevin
> 
> 
> When I've had to update stuff without breaking old links, I try to
> keep it to htaccess redirects. 
> 
> 
> Create .htaccess in /home/user/public_html (or other html root)
> 
> 
> Add lines like this;
> 
> 
> Redirect /old_relative_path/oldfile http://www.yourdomain.com/new_file
> 
> 
> Apache simply redirects as it comes in.  Does require "AllowOverride
> All" (or a restriction of) in Apache's sites-enabled file for the
> appropriate site.
> 
> 
> Hope that helps,
> 
> 
> Simon

> 
Thanks Ill give this a go
what do the google bots do when they are redirected? is this similar to
a 301 or do they treat the link as OK?

-- 

________________________________________________________________________


Regards

Kevin Lucas
Minions Post Master(Sub) 
A dedicated Linux user
/usr/bin/microsoft
Skype minions_shop
www.minionsbandb.co.uk
www.tearooms.minionsbandb.co.uk
FaceBook Minions_shop
Po House, Minions,
Liskeard Cornwall 
PL14 5LE
01579363386






-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq