IIS server doesn’t support .htaccess file!!!
This is a problem for most of us PHP developers. At least for me! Whenever I build a website, the default page is index.php. IIS doesn’t take index.php as the default page. It looks for default.html/index.html etc. I don’t have access to the configuration files of the server. What to do? If anybody have any professional idea, please suggest. I don’t have any idea how to solve this problem.
var cururl = window.location.href;
var splt = cururl.split('?');
var newurl = 'index.php';
if(splt.length > 1)
newurl = 'index.php?'+splt;
window.location.href = newurl;
I think this would be helpful for some people. If you have any other nice and professional approach to solve this please suggest here.