High Rankings Search Engine Optimization ForumHigh Rankings Advisor Search Marketing Newsletter

Welcome Guest ( Log In | Register )

Important Announcement: ***Need an Affordable SEO Website Review?***
2 Pages V   1 2 >  
Reply to this topicStart new topic
> Index.htm Vs Index.html, is there a difference?
josh1r
post Mar 14 2004, 08:41 PM
Post #1


HR 5
*****

Group: Active Members
Posts: 315
Joined: 9-March 04
User's local time:
Feb 9 2010, 11:15 AM
From: New York
Member No.: 2,820



Is there any difference or reason to have both an index.htm and index.html file?
Go to the top of the page
 
+Quote Post
Jill
post Mar 14 2004, 08:49 PM
Post #2


High Rankings Advisor
Group Icon

Group: Admin
Posts: 29,199
Joined: 21-July 03
User's local time:
Feb 9 2010, 10:15 AM
From: Ashland, MA
Member No.: 2



No, you only need one or the other.
Go to the top of the page
 
+Quote Post
oneofthe3lions
post Mar 14 2004, 09:01 PM
Post #3


Paz
******

Group: Active Members
Posts: 702
Joined: 4-March 04
User's local time:
Feb 9 2010, 11:15 AM
From: Spain
Member No.: 2,763



I guess this is in a similar vein... I seem to find twice as many results for my domain as i should.. i get results with the www. prefix and results without the www. its as tho i have 2 domains like this...... i want it with the www. bit so why is this happening? worries me as i hear about virtua and cheating domains and things..... thats on top of getting results for 60 pages everytime i do something when i only have 30 pages so far

thanks
Go to the top of the page
 
+Quote Post
awall19
post Mar 15 2004, 12:15 AM
Post #4


Peanut Butter Lover
*****

Group: Active Members
Posts: 502
Joined: 6-August 03
User's local time:
Feb 9 2010, 11:15 AM
Member No.: 319



Google tries hard to resolve them to the same location, but off the start it may see them as two different sites. Google finds them through different sites by following different links. Eventually they will resolve to the same location, which I generally think ends up being the one with the higher pagerank, which is usually the www. version
Go to the top of the page
 
+Quote Post
csjavi
post Mar 15 2004, 02:19 AM
Post #5


HR 4
****

Group: Active Members
Posts: 148
Joined: 2-September 03
User's local time:
Feb 9 2010, 05:15 PM
From: Tampere, Finland
Member No.: 713



You should 301 redirect yourdomain.com to www.yourdomain.com
Go to the top of the page
 
+Quote Post
Jill
post Mar 15 2004, 08:58 AM
Post #6


High Rankings Advisor
Group Icon

Group: Admin
Posts: 29,199
Joined: 21-July 03
User's local time:
Feb 9 2010, 10:15 AM
From: Ashland, MA
Member No.: 2



csjavi, can you explain how one would do that?

Thanks!

Jill
Go to the top of the page
 
+Quote Post
csjavi
post Mar 15 2004, 09:21 AM
Post #7


HR 4
****

Group: Active Members
Posts: 148
Joined: 2-September 03
User's local time:
Feb 9 2010, 05:15 PM
From: Tampere, Finland
Member No.: 713



I've used this in Apache:
CODE
RewriteEngine on
RewriteCond %{HTTP_HOST} !www\.mydomain\.com
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301]

This one redirects any domain other than www.mydomain.com (mydomain.com, foo.mydomain.com, www.mydomain2.com...) to www.mydomain.com

CODE
RewriteEngine on
RewriteCond %{HTTP_HOST} mydomain\.com
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301]

This one redirects only mydomain.com to www.mydomain.com.
Go to the top of the page
 
+Quote Post
burgeltz
post Mar 15 2004, 11:45 AM
Post #8


HR 3
***

Group: Active Members
Posts: 80
Joined: 24-July 03
User's local time:
Feb 9 2010, 11:15 AM
From: Plano, TX
Member No.: 27



Now that's kewl. Thanks for posting it.
Go to the top of the page
 
+Quote Post
WilliamC
post Mar 16 2004, 11:34 AM
Post #9


HR 2
**

Group: Active Members.
Posts: 24
Joined: 16-March 04
User's local time:
Feb 9 2010, 11:15 AM
Member No.: 2,901



Nice post of the rewrite code cs.

You can also do it at the root apache level by asking your host to either hardcode a 301 to your ServerName for domain.com or aim your ServerAlias to your ServerName
Go to the top of the page
 
+Quote Post
OneEyedDog
post Mar 16 2004, 04:00 PM
Post #10


HR 2
**

Group: Members
Posts: 14
Joined: 15-March 04
User's local time:
Feb 9 2010, 11:15 AM
From: Middle Earth
Member No.: 2,891



Excellent, thats tip of the day for me, thanks CS (IMG:http://www.highrankings.com/forum/style_emoticons/default/naughty.gif)
Go to the top of the page
 
+Quote Post
oneofthe3lions
post Mar 16 2004, 06:57 PM
Post #11


Paz
******

Group: Active Members
Posts: 702
Joined: 4-March 04
User's local time:
Feb 9 2010, 11:15 AM
From: Spain
Member No.: 2,763



I think this could definately help me..

I am using ws ftp pro . how do i insert this code.. to where?
I only thought my domain was at www. blahh blahh, not without the www. prefix.. how do i find my 'actual' domain then. i see my index html and i only really change that one
Go to the top of the page
 
+Quote Post
OneEyedDog
post Mar 16 2004, 08:31 PM
Post #12


HR 2
**

Group: Members
Posts: 14
Joined: 15-March 04
User's local time:
Feb 9 2010, 11:15 AM
From: Middle Earth
Member No.: 2,891



Hi There,

To make use of that code above you have to add it to your .htaccess file witch will be in the root directory of your website. If you can not see this file (guessing here as I use SmartFTP not ws_FTP) there will be an option in Tools > Options or Tools > Settings somewhere that will have a "Show All Files" or similar check-box. Check this and refresh your remote view to see the .htaccess file.

If you still cant see a .htaccess file you probably don't have one, simply create a text file called htaccess.txt, add this code:

CODE
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]


NOTE: change yourdomain.com to your actual domain (IMG:http://www.highrankings.com/forum/style_emoticons/default/unsure.gif)

Save the file and upload it to your root directory. Rename the file to .htaccess once you have uploaded it and type in http://yourdomain.com in your browser and you'll know that if you are true geek by getting excited watching the browser go to http://www.yourdomain.com

NOTE: .htaccess files are inclusive and last option rules. This means that you can set up an .htaccess file within the root directory of your website and it will be applicable to the rest of the downstream folders. If another .htacess file is in a sub-folder, the two are "added" together. Any commands that are contradictory are not debated. The last one processed wins. So an .htaccess file in a sub-folder would override any contradictory rules set previously in the parent folder. (I just read about this)

Hope this helps (IMG:http://www.highrankings.com/forum/style_emoticons/default/naughty.gif)
Go to the top of the page
 
+Quote Post
saulman
post Mar 17 2004, 09:16 AM
Post #13


HR 2
**

Group: Active Members
Posts: 20
Joined: 7-August 03
User's local time:
Feb 9 2010, 11:15 AM
From: Pittsburgh, PA
Member No.: 380



Not to seem like a total doofus :tooth: but is the code different if the site is hosted on an NT server? I'm only asking 'cuz I cannot get the .htaccess code to function.
Go to the top of the page
 
+Quote Post
qwerty
post Mar 17 2004, 09:48 AM
Post #14


HR 10
Group Icon

Group: Moderator
Posts: 7,489
Joined: 24-July 03
User's local time:
Feb 9 2010, 10:15 AM
From: Somerville, MA
Member No.: 22



Windows servers don't use .htaccess. Instead, you have to enter what you want in the Internet Services Manager snap-in.

Here's a page from Microsoft that should cover what you need: http://support.microsoft.com/default.aspx?...;EN-US;q324064&

HTH!
Go to the top of the page
 
+Quote Post
saulman
post Mar 17 2004, 11:38 AM
Post #15


HR 2
**

Group: Active Members
Posts: 20
Joined: 7-August 03
User's local time:
Feb 9 2010, 11:15 AM
From: Pittsburgh, PA
Member No.: 380



thanks qwerty! (IMG:http://www.highrankings.com/forum/style_emoticons/default/cheers.gif)
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >   
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



This forum is sponsored by High Rankings, a Boston SEO Agency
- Lo-Fi Version Time is now: 9th February 2010 - 10:15 AM