Title: Remove /index.php/ from permalinks
Last modified: August 20, 2016

---

# Remove /index.php/ from permalinks

 *  [Keverdy13](https://wordpress.org/support/users/keverdy13/)
 * (@keverdy13)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/remove-indexphp-from-permalinks/)
 * For all my permalinks, they have to be something like “[http://www.prindull.com/index.php/%year%/%monthnum%/%postname%/&#8221](http://www.prindull.com/index.php/%year%/%monthnum%/%postname%/&#8221);.
   And if I use a custom structure and remove the “/index.php/” part in the beginning,
   I get a server 404 error.
 * I want my post permalinks to be “[http://www.prindull.com/%year%/%monthnum%/%postname%/&#8221](http://www.prindull.com/%year%/%monthnum%/%postname%/&#8221);.
   Also, I want my feed, category, and tag permalinks not to have /index.php/ in
   the beginning.
 * I use cPanel.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [MarkRH](https://wordpress.org/support/users/markrh/)
 * (@markrh)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/remove-indexphp-from-permalinks/#post-2202001)
 * Sounds to me like your .htaccess isn’t correct. It should be something like:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 *  [jschurman](https://wordpress.org/support/users/jschurman/)
 * (@jschurman)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/remove-indexphp-from-permalinks/#post-2202262)
 * Do you know the configuration required for IIS as it uses a web.config file not
   a .htaccess file.
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/remove-indexphp-from-permalinks/#post-2202263)
 * [@jschurman](https://wordpress.org/support/users/jschurman/): Read [Using Permalinks without mod rewrite « WordPress Codex](http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite)
 *  [jschurman](https://wordpress.org/support/users/jschurman/)
 * (@jschurman)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/remove-indexphp-from-permalinks/#post-2202264)
 * Thanks [@songdogtech](https://wordpress.org/support/users/songdogtech/). I actually
   found the solution which is exactly what you showed. I installed the URL Rewrite
   Module via WPI and then added the code referenced in the web.config file.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove /index.php/ from permalinks’ is closed to new replies.

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [cPanel](https://wordpress.org/support/topic-tag/cpanel/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)
 * [unix](https://wordpress.org/support/topic-tag/unix/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [jschurman](https://wordpress.org/support/users/jschurman/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/remove-indexphp-from-permalinks/#post-2202264)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
