Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Removing .htm in url


  • Please log in to reply

#1
Donarudo

Donarudo

    Member

  • Member
  • PipPip
  • 53 posts
Topic title should about sum it up. Just want to remove the .htm extension but have it remain as such
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Other then using frames (ugh), you might try:

Open notepad and add this line to it:

DirectoryIndex index.html index.htm

Now add the page you want viewed when visitors visit http://www.yoursite.com . Use directory.html as an example.

DirectoryIndex directory.html index.html index.htm

This is basically the order of pages visitors will see. If directory.html doesn't exist, they'll go to index.html and on down the list.

Save it as htaccess.txt.

Upload it to the root directory of your domain. In FTP, rename it to .htaccess and you're done. Post back how it goes. Some FTPs will upload the file named .htaccess, but changing the name after upload is just as easy to do.

Ron
  • 0

#3
Donarudo

Donarudo

    Member

  • Topic Starter
  • Member
  • PipPip
  • 53 posts
The page is gallery.htm do i replace all those index.htm's with that?
  • 0

#4
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Just try it with one as I'm not even sure this will work the way you want it to.

Ron
  • 0

#5
Donarudo

Donarudo

    Member

  • Topic Starter
  • Member
  • PipPip
  • 53 posts
I mean with all honesty is it even worth a try.. seem s like a lot of work just to get rid of that stupid .htm
  • 0

#6
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
I don't think it's a lot of work, at least not the .htaccess way, but I also don't think it's worth trying to do what you're trying to do. :whistling:

Ron
  • 0

#7
Donarudo

Donarudo

    Member

  • Topic Starter
  • Member
  • PipPip
  • 53 posts
I'll just setup a subdomain and get it over with. Thanks
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP