PDA

View Full Version : Linking to internal pages without file extensions


TCampitelli
9-5-05, 09:43 AM
Howdy Folks,

I just switched to PowWeb and I have uploaded my website to the temporary area. I have a problem, however. Most of my links are broken because I do not specify the file extensions for my internal pages. For example, when I want to link to page.php, I just write <a href="page">link</a>. This way, if I decide to change my scripting language at some point in the future, I can do so and not worry about my links. I read about it somewhere on the web as being a wise practice.

My problem is that PowWeb does not support this out of the box, or so it seems. Aside from rewriting my pages, how do I get the web servers to find my pages without file extensions. I know this can work because I did it with my old host. Thanks in advance for any help. Take care.

Tom

TCampitelli
9-5-05, 09:50 AM
Here's where I came across this idea. The W3C. I remembered getting this idea from a reputable source.

http://www.w3.org/Provider/Style/URI#remove

Doe anyone here do this?

extras
9-5-05, 11:11 AM
You can do that with mod_rewrite (other than content negociation).
But I don't really recommend doing it.
It compilcates site management, and using something you can't maintain/modify by yourself isn't good idea.
Also, it adds overhead ...

EDIT:

If you insist, put this in the .htaccess of a directory, and see if it works.
Maybe PowWeb allows overtide for it. (I'm not sure at all, though)
Options +Multiviews