301 permanent redirection of directories
301 permanent redirection of directories
am 01.11.2007 14:26:10 von 1001 Webs
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
am 01.11.2007 21:21:44 von Rik Wasmus
On Thu, 01 Nov 2007 14:26:10 +0100, 1001 Webs <1001webs@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
am 01.11.2007 21:40:12 von Jim Hayter
Rik Wasmus wrote:
> On Thu, 01 Nov 2007 14:26:10 +0100, 1001 Webs <1001webs@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
am 02.11.2007 00:09:59 von 1001 Webs
On Nov 1, 9:40 pm, Jim Hayter wrote:
> Rik Wasmus wrote:
> > On Thu, 01 Nov 2007 14:26:10 +0100, 1001 Webs <1001w...@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
am 13.11.2007 00:35:50 von tabkanDELETETHISnaz
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:
PS: The SEO meme is spreading at an amazing rate.
--
If you've a question that doesn't belong to Usenet, contact me at