Title: Custom redirect without plugin
Last modified: August 22, 2016

---

# Custom redirect without plugin

 *  [mrbuddy](https://wordpress.org/support/users/mrbuddy/)
 * (@mrbuddy)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/custom-redirect-without-plugin/)
 * Hello, I pulled my blog to another provider. In this context, I would also fix
   a rookie mistake with .htaccess.
 * Had this Permalinkstruktur:
 * [http://www.example.com/index.php/%postname%](http://www.example.com/index.php/%postname%)
 * Now I also want have the ‘/index.php/’ out. The rest of the link structure remains
   the same just only without the “index.php”.
 * Just inside of .htaccess is this to make the website available, only with ‘www’:
 * RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
    RewriteCond %{HTTP_HOST} !
   ^example\.com$ [NC]
 * Do not want a plugin. Can someone help me for a code within the .htaccess?!
 * Thanks for the help!

Viewing 1 replies (of 1 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/custom-redirect-without-plugin/#post-5750901)
 * Did you just remove the `/index.php/` from your permalink structure?
 * If so, WordPress will handle issuing the permanent redirects itself, no plugin
   or `.htaccess` work required.

Viewing 1 replies (of 1 total)

The topic ‘Custom redirect without plugin’ is closed to new replies.

## Tags

 * [custom redirect](https://wordpress.org/support/topic-tag/custom-redirect/)
 * [without plugin](https://wordpress.org/support/topic-tag/without-plugin/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/custom-redirect-without-plugin/#post-5750901)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
