Remove index.php from URL (Permalinks)

This is the rewrite script for wordpress to take out the index.php from the URL. Current: /index.php/%postname%/

1. Change the permalink settings in wordpress to custom structure. (/%postname%/)
2. Upload this script as rewrite.script.php and upload to root.
3. Test it! (it worked for me)

OR for a normal server

1. Change the permalink settings in wordpress to custom structure. (/%postname%/)
2. Upload this script as .htaccess and upload to root.
3. Test it! (Yet to be confirmed….!)

Leave a Comment

Your email address will not be published. Required fields are marked *