301 permanent redirection of directories
I am going to do 301 permanent redirection for quite a few pages (66).
I wonder whether you can redirect a whole directory or do the pages
have
to be individually redirected?
And since we are at it.
How do you create customized 404 pages?
I did a few through cPanel, saved as 404.shtml and did appear for a
while, but now for some reason unknown to me, they are overridden by
system default 404 pages.
Thanks
Re: 301 permanent redirection of directories
On Thu, 01 Nov 2007 14:26:10 +0100, 1001 Webs <1001webs [at] gmail.com> wrote:
> I am going to do 301 permanent redirection for quite a few pages (66).
> I wonder whether you can redirect a whole directory or do the pages
> have
> to be individually redirected?
As long there's some logic to it, some mod_rewrite/rewriterules could help
> And since we are at it.
> How do you create customized 404 pages?
http://httpd.apache.org/docs/2.0/mod/core.html#errordocument
--
Rik
Re: 301 permanent redirection of directories
Rik Wasmus wrote:
> On Thu, 01 Nov 2007 14:26:10 +0100, 1001 Webs <1001webs [at] gmail.com> wrote:
>
>> I am going to do 301 permanent redirection for quite a few pages (66).
>> I wonder whether you can redirect a whole directory or do the pages
>> have
>> to be individually redirected?
>
> As long there's some logic to it, some mod_rewrite/rewriterules could help
If the OP wants to redirect entire directories, Redirect and
RedirectMatch should prove useful.
Jim
Re: 301 permanent redirection of directories
On Nov 1, 9:40 pm, Jim Hayter <see.reply... [at] nowhere.invalid> wrote:
> Rik Wasmus wrote:
> > On Thu, 01 Nov 2007 14:26:10 +0100, 1001 Webs <1001w... [at] gmail.com> wrote:
>
> >> I am going to do 301 permanent redirection for quite a few pages (66).
> >> I wonder whether you can redirect a whole directory or do the pages
> >> have
> >> to be individually redirected?
>
> > As long there's some logic to it, some mod_rewrite/rewriterules could help
>
> If the OP wants to redirect entire directories, Redirect and
> RedirectMatch should prove useful.
>
> Jim
Here's what I did:
Redirect permanent /olddir/ http://www.xxx.com/newdir/
It works fine.
Not sure about SEO, though ...
Re: 301 permanent redirection of directories
1001 Webs wrote:
> Here's what I did:
> Redirect permanent /olddir/ http://www.xxx.com/newdir/
>
> It works fine.
> Not sure about SEO, though ...
>
SE don't have problems with 301 redirections.
However, the day you replace them by 404 errors, your site visibility will
dramatically decrease, not only from search engines, but also from other
sites linking to yours.
Broken links are almost never restored (except on wikipedia). Even the W3C
sites links are never updated.
Advice:
1) Keep your redirection forever.
2) Design your URI cleverly so that they cannot easily change.
The following article explains that principle quite well:
<http://www.w3.org/Provider/Style/URI>
PS: The SEO meme is spreading at an amazing rate.
--
If you've a question that doesn't belong to Usenet, contact me at
<tabkanDELETETHISnaz [at] yahoDELETETHATo.fr>