|
|
|
|
||||||
| alt.internet.seo Internet search engines and related topics. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 / ? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
__/ [ 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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
>
> 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 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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? |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
__/ [ .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. |
|
![]() |
| Outils de la discussion | |
|
|