I spent so much time on it and I am really tired.
I will go straight to the point:
1) FTP – Go on the main directory of your website (www.yourwebsite.com)
2) You should look for the file .htaccess (is an hidden file, so you should set your FTP client or your web-cpanel to show hidden files).
3) Open the .htaccess file, copy all the content and paste and save it in another file on your pc (this is helpful just in case things go wrong). Name this file “justincasethingsgowrong.htaccess”
4) Now delete the .htaccess file from your website.
5) Go on your WordPress admin panel and set up the pretty permalink as you like (without the index.php) and save it.
6) After saving, you will get a message that says you need to upload your .htaccess
7) create an empty .htaccess file and upload it in the main directory of your website (www.yourwebsite.com).
Try to access your website.
EVERYTHING SHOULD BE WORKING.
If it doesn’t, copy the code below inside your .htaccess (on the web):
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Save it and everything will be fine.
Now you finally got rid of the index.php
If you still have troubles, just go back to the file “justincasethingsgowrong.htaccess” that you saved on your pc, and upload again that file on the main directory of your website and rename it with “.htaccess” (but in this case you won’t have solved the problem).
Good luck





Hi! I´ve contacted my Hosting provider (ALPSHOST.COM) and they told me they dont support .htaccess edit…I think because it is a Windows primary based Hosting.
Is there a workaround for me? I am migrating some Blogger Blogs to WordPress as it is much more flexible and I want to hold the same Permalinks I use to have in Blogger so I dont loose any linkback and indexed posts.
Thanks for anyone for your help!
Hello
Was this meant to be for IIS 6?
Excellent solution. Thank you!
I treid both of you options here and neither work. When I press the Custom Structure button without the index.php at the beginning of the line, as soon as I press Save Changes, it jumps up to Month and Name.
I tried copying the code into the .htaccess file and that did not work. Any suggestions would be greatly appreciated.
What version of WordPress are you using?
Maybe the problem is there.
By the way try once again cause so far the solutions above have always worked for all people that I know.
Let me know.
Thanks,
Marco.
Where to place the .htaccess file in the wordpress folders or in my host?
Because I can’t find a .htaccess on my host or ftp
P.S. I am using godaddy
blast from the past… but hey, thanks a bunch, man. solved me a huge headache.
Worked perfectly!
Works for me, Marco. Thanks very much for the great tip. I’ve been looking all day for a solution other than rewriting the site. This was easy
[...] [...]
thanx
I needed this
Thank u for this valuable posting
Works a charm. If you find you don’t have a .htaccess file, just create one in a new text document and upload via FTP. thanks for the straight-forward info.
Whats’s Up i am fresh to this, I stumbled upon this chat board I find It positively accessible and it has helped me tons. I should be able to contribute and help other people like it has helped me.
Cheers, See You Later,
[...] Na podstawie: How to remove the index.php… [...]
Thanks a bunch, one of those fine-tuning small jobs that made me want to end my life. Worked great in WordPress 3.0 when the provided text was inserted to the .htaccess file!
Thank you for this very useful post. I was pulling my hair out trying to fix this. Your post worked like a dream.
Thanks again!
Wow!!! It worked!! I’ve been trying to solve this problem for months. Thank you so much!!
it don’t work with me
[...] 2) Unfortunately, this didn’t work on its’ own. I also needed to modify the .htaccess file, to rewrite the address so that my web server knows to direct these pages to WordPress’s index.php. I’m not very good with the mod_rewrite rules in Apache, but I got there, thanks to Marco De Cesaris. Marco has posted just this thing on his blog, here: http://www.marcodecesaris.com/how-to-remove-the-indexphp-from-the-pretty-permalink-in-wordpress-25x-… [...]