Posted By: ramki ()
Posted On: 10/25/2007 09:44 pm
|
Hi friends,
Is it possible to call/convert an html url (www.abc.com/index.html) like this www.abc.com/index (without the extension). How to do that. If your know the procedure please help!. Thanks in advance.
|
|
Posted By: g1smd (Moderator)
Posted On: 10/26/2007 05:06 am
|
Yes. The URL that is indexed is defined by what you have in the links that point to the page. So first, alter the links to call for that URL.
Be aware that URLs and server filepaths are two very different things. There are at least two ways to achieve what you want. Pick one.
When I use what appear to be extensionless URLs, they are actually index files inside folders. The index file filename isn't mentioned in the link. The URL will end with a trailing slash every time. The trailing slash is very important.
The other way is to use the Apache ModRewrite function to examine the initial URL request and then add the .html extension to the end of the requested internal filepath.
|
|
|