WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-27-2006, 03:24 AM
WebProWorld New Member
 

Join Date: May 2004
Posts: 12
xecute RepRank 0
Default how do i drop index.? from my domain name root?

I have seen more and more sites where the home url is www.mydomain.url and they don't have index.htm, .html or .php after it when the page loads up.

How do you get your site to not show the index extension after the domain name?

Also is there any benefits from this or is it purely cosmetic? (especialy concerning search engines).

P.S. thanks for any advice in advance and sorry if this has already been asked before (which i am sure it probabaly has) but i couldn't find the thread if it has been :(
Reply With Quote
  #2 (permalink)  
Old 04-27-2006, 03:35 PM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,644
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default

It is a server side thing. You have to set up and name your default document (home page) at the server level.

Then make sure that you link to (refer) to the domain name itself on your internal navigation and not a relative URL like "/index.php".

Of course if others websites are already linking to you using:

www.domainname.com/index.php

and you have no control over changing it there isn't much that can be down, but that is usually not an issue because far more people will link to the root domain:

www.domainname.com/

when referencing the home page

Now when you see websites do a redirect when clicking on the link from the SERP (search engine result page) it is because the company themselves have a 302 redirect from the root domain to the sub directory or page. For example when searching for "Century 21" on Google you see in the SERP it is http://www.century21.com/, but when clicking on it it redirects to:

http://www.century21.com/home.aspx

blah!
Reply With Quote
  #3 (permalink)  
Old 04-27-2006, 08:53 PM
WebProWorld New Member
 

Join Date: May 2004
Posts: 12
xecute RepRank 0
Default

By server side do you mean via cpanel (which is what is on my host) and in there put a redirection on say www.mydomain.net/index.htm to redirect to www.mydomain.net?

So it will hold the info held on the index.htm but will show the page as being at www.mydomain.net without any index extension?

sorry for the noobie questions.
Reply With Quote
  #4 (permalink)  
Old 04-27-2006, 11:02 PM
Easywebdev's Avatar
WebProWorld Veteran
 

Join Date: Apr 2004
Location: Donegal, Ireland.
Posts: 322
Easywebdev RepRank 1
Default

When you send a request for domain.com the webserver software (whether it be apache, IIS, litehttp etc) will return whatever page is configured as the default.

In apache you can define the default page to serve, it could be anything from index.html to someotherpage.name

Most webservers have a range of defaults that they read from left to right such as (index.htm, index.html, index.shtml, index.php3, index.php) etc.

You should direct links to the domain only unless you have set your default page to be keyword_keyword_keyword.php for SEO purposes.
Reply With Quote
  #5 (permalink)  
Old 04-28-2006, 06:40 PM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

If your index.htm page is showing up in the url, it's probably because you are linking to it.

So.... stop linking to it and link to the domain itself
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #6 (permalink)  
Old 04-29-2006, 04:14 AM
WebProWorld New Member
 

Join Date: May 2004
Posts: 12
xecute RepRank 0
Default

I am not linking to it.

If you type in my URL http://www.serious-sounds.net it automaticaly adds the '/index.htm' extension to it :(

I just thought i maybe missing something i could do via either ftp, shell or Cpanel. Thats why i asked, but i am guessing by the replies here that it must be the Apache servers configuration and i would have to ask my host?

Oh well, atleast now i know it wasn't some trick i was missing out on.

Thanks for your help peeps.
Reply With Quote
  #7 (permalink)  
Old 04-29-2006, 04:18 AM
WebProWorld New Member
 

Join Date: May 2004
Posts: 12
xecute RepRank 0
Default

I am not linking to it.

If you type in my URL http://www.serious-sounds.net it automaticaly adds the '/index.htm' extension to it :(

I just thought i maybe missing something i could do via either ftp, shell or Cpanel. Thats why i asked, but i am guessing by the replies here that it must be the Apache servers configuration and i would have to ask my host?

Oh well, atleast now i know it wasn't some trick i was missing out on.

Thanks for your help peeps.
Reply With Quote
  #8 (permalink)  
Old 04-29-2006, 01:41 PM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

oh yeah, that is weird... and unusual

Do you have an htaccess file in your root directory?
If you do, can you show the contents?
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #9 (permalink)  
Old 08-04-2008, 06:11 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: Oklahoma
Posts: 25
netroact RepRank 0
Default Re: how do i drop index.? from my domain name root?

Looks like it's fixed. Could you share with us what you or your host did to change it? Was it in the Apache config file?
Oops! Din't realize this was an old post.
Reply With Quote
  #10 (permalink)  
Old 08-04-2008, 06:45 PM
WebProWorld Veteran
 

Join Date: Jul 2004
Posts: 973
activeco RepRank 2
Default Re: how do i drop index.? from my domain name root?

Quote:
Originally Posted by netroact View Post
Could you share with us what you or your host did to change it? Was it in the Apache config file?
Oops! Din't realize this was an old post.

It's always actual for new generations.

Apache provides the 'DirectoryIndex' directive which determines default file (or more) for the directory root. You can set it up in conf file or even better in .htaccess file, per directory.

E.g.: DirectoryIndex netroact.php
__________________
Vote Hussein, vote humanity
Reply With Quote
  #11 (permalink)  
Old 08-04-2008, 10:30 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: Oklahoma
Posts: 25
netroact RepRank 0
Default Re: how do i drop index.? from my domain name root?

Thanks
Reply With Quote
  #12 (permalink)  
Old 08-07-2008, 04:38 AM
Banned
 

Join Date: Jul 2008
Posts: 49
johnxuster RepRank 0
Default Re: how do i drop index.? from my domain name root?

Most webservers have a range of defaults that they read from left to right
Reply With Quote
  #13 (permalink)  
Old 08-24-2008, 08:14 AM
WebProWorld Veteran
 

Join Date: Jun 2004
Location: Australia
Posts: 377
watto RepRank -1
Default Re: how do i drop index.? from my domain name root?

you can redirect in your webmaster tools.

watto
Reply With Quote
  #14 (permalink)  
Old 09-19-2008, 09:32 AM
WebProWorld New Member
 

Join Date: Sep 2008
Posts: 9
adserverexpert RepRank 0
Default Re: how do i drop index.? from my domain name root?

if you entering ur site name, it automatically redirect to index page without displaying index.php or html or htm in url.
__________________
Lamp Expert , Openx joomla , E-commerce Web development ,PHP Developer,
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0