Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Remove index.php from permalink WordPress

My permalink structure is:

I moved the installation to a Linux server and I want to remove the 'index.php' from permalink.

If I make this change, Google will think there is a broken page (former URL), and a duplicate page on my site (new url): it may penalise both URLs (pages), and my page severely drops in ranking on Google: well at least for a while until Google decides drop the old page from its index.

How can I make this change and prevent this from happening?

How can I make the redirect from old URL to new URL?


Answers (7)


Julio Potier answers:


You can use this plugin : [[LINK href=""]][[/LINK]]

Your new permalink won't be duplicated, it acts like 301 redirections, not "another page like the other one"

See you !


Luis Cordova answers:

what plugin?


no you just need to make your index.php change a bit or your .htaccess

that is it


Sébastien | French WordpressDesigner answers:

Julio, ton lien est pas passé.

Like Luis : you can add a simple line in your htaccess to make a redirection

Sébastien | French WordpressDesigner comments:

your permalink structure is what ?
Could you look at that here :


Bogdan answers:

You have an .htaccess file? You are using wordpress? If you don`t have a file named .htacces, make one (give the permissions 777) and add this code:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

P.S: Before, download the .htaccess file to your computer to have a backup in case that something goes wrong.

LE: Don`t forget to modifiy your Permalinks in case that you user Wordpress.

LE 2: Or try this:

RewriteCond %{THE_REQUEST} \/index.php\ HTTP [NC]
RewriteRule (.*)index.php$ /$1 [R=301,L]

LE 3: After that,use this plugin:

Bogdan comments:

So... you solve the problem or what?


Jerson Baguio answers:

try to use this plugin :


Ivaylo Draganov answers:


you shouldn't worry about that, because to WordPress <em></em> and <em></em> are the same. I mean, if you enable the pretty permalinks(without index.php) on your new server, then the old "almost pretty" ones (with index.php) will be automatically internally redirected by WordPress.

Try it. Change your permalink structure* and then visit one of the old URLs. You'll notice how it redirects.

* the permalink structures (without the index.php part) must match


Francisco Javier Carazo Gil answers:

Hi Rodrigo,

Apart from:
* htaccess
* redirection plugin
* new permalink structure

You may have to notify Google via Google Webmaster Tools:

If you are using a Sitemap (try this: you will have to delete it and make a new one.