Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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