I have spent a good bit of time changing all the links in my site from ones that explicitly used "index.html" as the target to ones that use directory hierarchy and defaults (ie. "/" maps to "/index.html", "/index.php" etc.)
Now I'm wondering if this is commonly done, or whether this is bad practice?
I used to have a flat design with hundreds of pages, but named them hierarchically using the hyphen character "www.sitename.com/topic-subtopic-subsubtopic.html". Then, I figured it would make more sense to create at least one level of directories, so that the main topics can be found by "www.sitename.com/topic/" instead.
The reason for this was that I was thinking of changing some of my pages to use PHP instead of plain HTML. Because a lot of sites are linking to the main topic pages (eg. topic.html), I don't want to have to keep setting up 301 redirects (from topic.html to topic.php). Plus, it seems more organized.
However, I am wondering whether this was the right thing to do.... When I'm using Dreamweaver MX, it doesn't seem to know how to resolve links to "/topic/" into "/topic/index.html" for the purposes of "broken link" checking. Plus, it obviously won't maintain the updates correctly now because it doesn't know how to resolve the directory defaults.
I am now questioning this methodology.
Can someone please clear this up for me?
Any help would be greatly appreciated!
Cal.
Now I'm wondering if this is commonly done, or whether this is bad practice?
I used to have a flat design with hundreds of pages, but named them hierarchically using the hyphen character "www.sitename.com/topic-subtopic-subsubtopic.html". Then, I figured it would make more sense to create at least one level of directories, so that the main topics can be found by "www.sitename.com/topic/" instead.
The reason for this was that I was thinking of changing some of my pages to use PHP instead of plain HTML. Because a lot of sites are linking to the main topic pages (eg. topic.html), I don't want to have to keep setting up 301 redirects (from topic.html to topic.php). Plus, it seems more organized.
However, I am wondering whether this was the right thing to do.... When I'm using Dreamweaver MX, it doesn't seem to know how to resolve links to "/topic/" into "/topic/index.html" for the purposes of "broken link" checking. Plus, it obviously won't maintain the updates correctly now because it doesn't know how to resolve the directory defaults.
I am now questioning this methodology.
Can someone please clear this up for me?
Any help would be greatly appreciated!
Cal.















