Open Side Menu Go to the Top
Register
Remove php extension from URL on Windows hosting account using web.config Remove php extension from URL on Windows hosting account using web.config

10-07-2016 , 01:53 AM
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 asphostportal.com. 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 asphostportal 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 : www.abcdef.com/contact.php

Desired URL : www.abcdef.com/contact

Any help would be greatly appreciated.

Thanks
Remove php extension from URL on Windows hosting account using web.config Quote

      
m