Search
Generic filters
Exact matches only

Remove index.php from URL (Permalinks)

30th October 2013

Admin WP

wordpress category

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….!)

Was this code snippet helpful?

Comment on this Code Snippet?