PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Diriger une société d'hébergement > alt.internet.seo > Redircting from index.html to /
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.internet.seo Internet search engines and related topics.

Redircting from index.html to /

Réponse
 
LinkBack Outils de la discussion
Vieux 17/08/2006, 04h06   #1
.oO[x]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Redircting from index.html to /

A 300-page site with many links to pages like this:

example.com/directory/stuff/index.html

Is it worth changing them to:

example.com/directory/stuff/

Should there also be 301 redirects from every /directory/index.html
to /directory/
?

It doesn't have many IBLs, and very little traffic.

Also, in general, on pages where Google has indexed both / and /index.html
is it good to redirect the index.html to /
?



  Réponse avec citation
Vieux 17/08/2006, 06h47   #2
Big Bill
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redircting from index.html to /

On Wed, 16 Aug 2006 23:06:08 -0400, ".oO[x]" <nospam@nospam.invalid>
wrote:

>A 300-page site with many links to pages like this:
>
>example.com/directory/stuff/index.html
>
>Is it worth changing them to:
>
>example.com/directory/stuff/
>
>Should there also be 301 redirects from every /directory/index.html
>to /directory/
>?
>
>It doesn't have many IBLs, and very little traffic.
>
>Also, in general, on pages where Google has indexed both / and /index.html
>is it good to redirect the index.html to /
>?


You mean should you have something like this in your .htaccess file?

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
RewriteRule index\.html$ http://www.example.com/%1 [R=301,L]
</IfModule>

Probably, yes. I'll let Bokma pick that one apart.

BB



--

http://www.kruse.co.uk/affordable-we...n-services.htm
http://www.kruse.co.uk/google-mountain.htm
http://www.kruse.co.uk/seo-home-page.htm
  Réponse avec citation
Vieux 17/08/2006, 09h13   #3
Roy Schestowitz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redircting from index.html to /

__/ [ Big Bill ] on Thursday 17 August 2006 06:47 \__

> On Wed, 16 Aug 2006 23:06:08 -0400, ".oO[x]" <nospam@nospam.invalid>
> wrote:
>
>>A 300-page site with many links to pages like this:
>>
>>example.com/directory/stuff/index.html
>>
>>Is it worth changing them to:
>>
>>example.com/directory/stuff/
>>
>>Should there also be 301 redirects from every /directory/index.html
>>to /directory/
>>?
>>
>>It doesn't have many IBLs, and very little traffic.
>>
>>Also, in general, on pages where Google has indexed both / and /index.html
>>is it good to redirect the index.html to /
>>?

>
> You mean should you have something like this in your .htaccess file?
>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{HTTP_HOST} !^www\.example\.com$
> RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
> RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
> RewriteRule index\.html$ http://www.example.com/%1 [R=301,L]
> </IfModule>
>
> Probably, yes. I'll let Bokma pick that one apart.


Probably depends on the software that runs the server. Could be LiteSpeed,
for example. I wonder if there is a front-end like cPanel or Plesk to all of
this. Makes life much easier by generating the code... Surely, on the other
hand, front end don't allow the user to be expressive, although some might
support regex (which complicates the front-end).

Best wishes,

Roy

--
Roy S. Schestowitz
http://Schestowitz.com | GNU/Linux | PGP-Key: 0x74572E8E
Swap: 1036184k total, 474456k used, 561728k free, 93132k cached
http://iuron.com - next generation of search paradigms
  Réponse avec citation
Vieux 17/08/2006, 12h16   #4
Marco
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redircting from index.html to /

>
> Also, in general, on pages where Google has indexed both / and /index.html
> is it good to redirect the index.html to /
> ?



In my opinion it is good
because right now, without redirect and with duplicated pages in Google
index,
you are spreading page rank away




Marco
http://www.submission.it
http://www.indicizzato.it
http://www.posizionamento.com


  Réponse avec citation
Vieux 18/08/2006, 17h28   #5
.oO[x]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redircting from index.html to /

Big Bill wrote:

> You mean should you have something like this in your .htaccess file?
>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{HTTP_HOST} !^www\.example\.com$
> RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
> RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
> RewriteRule index\.html$ http://www.example.com/%1 [R=301,L]
> </IfModule>
>
> Probably, yes. I'll let Bokma pick that one apart.


Thanks. I'll try that. It's a Dreamweaver template, so I'm not sure about
the best way to convert the links across a 300 page site without breaking
the template. I would just find-replace all /index.html to / in the
directory, but I'm not sure what that would do to the Dreamweaver template.

  Réponse avec citation
Vieux 18/08/2006, 17h31   #6
.oO[x]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redircting from index.html to /

Roy Schestowitz wrote:

> Probably depends on the software that runs the server. Could be LiteSpeed,
> for example. I wonder if there is a front-end like cPanel or Plesk to all
> of this. Makes life much easier by generating the code... Surely, on the
> other hand, front end don't allow the user to be expressive, although some
> might support regex (which complicates the front-end).


It's Apache on Yahoo hosting. I haven't been in the CP yet and I'm not sure
what it is...

Can you do this automatically with cPanel?

  Réponse avec citation
Vieux 18/08/2006, 18h52   #7
Roy Schestowitz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Redircting from index.html to /

__/ [ .oO[x] ] on Friday 18 August 2006 17:31 \__

> Roy Schestowitz wrote:
>
>> Probably depends on the software that runs the server. Could be LiteSpeed,
>> for example. I wonder if there is a front-end like cPanel or Plesk to all
>> of this. Makes life much easier by generating the code... Surely, on the
>> other hand, front end don't allow the user to be expressive, although some
>> might support regex (which complicates the front-end).

>
> It's Apache on Yahoo hosting. I haven't been in the CP yet and I'm not
> sure what it is...
>
> Can you do this automatically with cPanel?


Yes, it's click-and-droll with CP.

Go to icon named redirection; at the top, enter target URL and source, then
press 'add redirection' (I am speaking from memory here, so the names may
vary). Yahoo is notorious for safe-moding their hosted accounts. I hope they
permit you to do something so fundamental though.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h14.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15395 seconds with 15 queries