How Do I Hide The File Extinsion On The End Of My Domain Name?
RSS

How Do I Hide The File Extinsion On The End Of My Domain Name?

Category: FAQ   Time: 2009-11-23   Tags: , , , ,

For instance, when I got to my website (mjpro.net) in the address bar it says mjpro.net/index.html. How do I hide the extension index.html part? so it just says mjpro.net/

Next: Why My New Domain E-mail Goes To Ppl Junk Folder?
Previous: I’m Starting A Small Business Selling Furniture And Home Accessories Through Internet.?
"How Do I Hide The File Extinsion On The End Of My Domain Name?" was posted on Monday, November 23rd, 2009 at 8:24 pm.

3 Responses to “How Do I Hide The File Extinsion On The End Of My Domain Name?”
  1. Ron(2009-11-24):

    First, remove “index.html” from the links on all of your pages. It is the links on your pages which determine the url, while internal rewrites (including Directroyindex) associate a “Web” url with a server filepath.
    Then redirect only client requests for “/index.html” to “/”. This restriction is necessary to prevent a loop, since Directoryindex will rewrite “/” back to “/index.html” and if you overlook it, you’ll create an ‘infinite’ redirect/rewrite loop.
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /tagword/([^/]+/)*index.html
    RewriteRule ^tagword/(([^/]+/)*)index.html$ http://www.example.com/tagword/$1 [R=301,L]
    Both steps are required to “change” a url and get the search engines to drop the old one.
    THE_REQUEST is the HTTP request header as received from the client (browser or ‘bot), and might look like this:
    GET /tagword/main/sub/index.html HTTP/1.1
    Ron

  2. Ron(2009-11-24):

    Maybe you should make a new folder with your ftp client or through the file manager in your cPanel and call it news in the public_html folder. Then what you’d have to do is upload the thing that you would normaly call news.htm into the news folder except you have to call it index.htm
    good luck :)

  3. whatever(2009-11-24):

    You could change your .htaccess file to hide or change the extension of your index.html files.

Leave a Reply

 
Recent Posts
Random Posts