Pages

Dubli Join Us

Search About New Technology and Bug

Wednesday, November 2, 2011

remove index.php from wordpress on win2003 shared hosting

No need to install any ISAPI filter to remove the index.php from WordPress permalinks.No need of .htaccess file..Use these simple steps to WordPress Permalinks in IIS 6.0 using Custom 404 Redirect for Windows Shared hosting/manas hosting or any windows shared hosting.When you run wordpress on IIS server your permalinks have to include the prefix /index.php/ which looks ugly and is totally unnecessary.If you have these requirements as follow:

a.IIS for Windows Shared Hosting

b.WordPress Site

c.Access to change your 404 error page with your web hosting.

This can be remove by following simple steps.

1. Once installed wordpress blog on your site you’ll want to log into the admin section and select options and then select permalinks. Set your permalinks as you wish.

2. Then You’ll create a new text file and name it "404-error.php". In this text file you’re going to include the text:

<?php// This is the default file for the site. Usually index.php$default = 'index.php';

3.Set a custom 404 redirect to “/404-error.php”. It is important that the type of redirect is set to URL.
You can change this directly from within IIS by selecting Properties -> Custom Errors. Select 404. Edit. Set Message Type to URL (you have the option of File, URL or Default). Set it to /404-error.php.

go to the webspace tab in control panel, then click on WebSite Configuration. it will display some tab in right side, click on Error Documents. then click on 404 in list it will display the following windows.

This works perfectly well for all inside pages. Only the home page is not showing any contents. Blank page appears without any errors, when I click the home button from any page. My wordpress blog site is blogs.halloweencostumesale.com.blogs.halloweencostumesale.com/index.php shows the home page correctly.

http://blogs.halloweencostumesale.com/memorial-day-costumes/ shows correctly. Only the home page is a problem. When I check with httpWatch, I see that the home page is returning a 404 error.

Yes. Because without the third step even my inside pages were not working. The inside pages are working fine without the index.php required in the url, but the home page does not work without the index.php added. Hence, blogs.halloweencostumesale.com is not working and only blogs.halloweencostumesale.com/index.php is working.However, http://blogs.halloweencostumesale.com/about-us/ and all other inside urls work perfectly well.

I wasted more than 6-8 hours trying to find a solution and yours is the only solution which is easiest to implement and has worked well for me except this home page issue. Can you please help resolve this issue for me. I have lost patience to do any further research or try any other solutions.