Is www.Yoursite.com/resource? or www.Yoursite.com/resource.htm Better ?

by entry
2 replies
I relized I might get a response here from more programmers.

I wish to include some URL affiliate Links for my autoresonder emails.

These links will be in the Emails that my list will receive.


I want to hide it under a sub directory, using promotion as the sub directory link. I have 2 options to display the url.

www.Mysite.com/resource ? or www.Mysite.com/resource.htm ? << (made up example sites)


(The /resource directory has an index.htm file, which contains the page or the Redirect page)

Questions:
a) Can i use either one? or it is Not a good idea to use one of them? - if so Why isn't it a good idea?

b) what is the difference between both? Will NOT using the .htm one give problems for some browsers? or is NOT including the .htm unsafe for browsers?

I would prefer without the .htm.


c) How do i set this up, editing my

index.html / index.htm
and
index.php files?
  • Profile picture of the author kbeezie
    Without the .htm tends to be better for SEO, especially if you were to later break it down into mod_rewrite such as /resource/parameters/etc/

    You can use both, and browser-wise it will have no impact.

    Far as c) , setting it up is as simple as creating the folder with that name and having an index.htm/html/php in that folder. The alternative is to use mod_rewrite in an .htaccess and have it send the path parameters to a root index.php.
    {{ DiscussionBoard.errors[2616832].message }}
    • Profile picture of the author SteveJohnson
      Originally Posted by kbeezie View Post

      Without the .htm tends to be better for SEO, especially if you were to later break it down into mod_rewrite such as /resource/parameters/etc/.
      This information comes from where exactly? SEO and mod_rewrite have nothing to do with each other.

      Beyond that, if you're writing rewrite rules and you can't strip out a file extension, you probably have no business writing rewrite rules, at least without brushing up on regex.
      Signature

      The 2nd Amendment, 1789 - The Original Homeland Security.

      Gun control means never having to say, "I missed you."

      {{ DiscussionBoard.errors[2617026].message }}

Trending Topics