Apache Server configuration support - 301 permanent redirection of directories

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > November 2007 > 301 permanent redirection of directories





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author 301 permanent redirection of directories
1001 Webs

2007-11-01, 1:32 pm

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

Rik Wasmus

2007-11-01, 7:22 pm

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/mo...l#errordocument
--
Rik
Jim Hayter

2007-11-01, 7:22 pm

Rik Wasmus wrote:
> On Thu, 01 Nov 2007 14:26:10 +0100, 1001 Webs <1001webs@gmail.com> wrote:
>
>
> 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
1001 Webs

2007-11-01, 7:22 pm

On Nov 1, 9:40 pm, Jim Hayter <see.reply...@nowhere.invalid> wrote:
> Rik Wasmus wrote:
>
>
>
> 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 ...

André Gillibert

2007-11-12, 7:29 pm

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@yahoDELETETHATo.fr>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com