I’ve searched before asking this question. The answered ones were related to Linux hosting account and the ones with Windows hosting account didn’t match what I was looking for.
As you might have guessed, I’ve a Windows shared hosting account with godaddy. My aim was to remove the ‘.php’ extension from the url. After researching I found that .htaccess would do exactly what I want. But I also found that .htaccess doesn’t work in Windows environment and that I’ll need a web.config file to do the same task.
Now I know there are modules through which the code can be generated, but the problem is I don’t know how to get them installed on my hosting account. I don’t want to go through the process of contacting the people over at godaddy and hence I’m looking to solve this on my own. What I’m looking for is a web.config equivalent of .htaccess
This is what I’m trying to achieve:
Current URL : http://www.abcdef.com/contact.php
Desired URL : http://www.abcdef.com/contact
Any help would be greatly appreciated.
Thanks,
Nisar.
Nisar,
This tutorial does a great job at explaining what you need to do with IIS.
http://atlantawebsites.blogspot.com/2010/06/vanity-urls-with-godaddy-hosting-using.html
Here’s what yours would look like: