Rewrite index.php in Wordpress


I started a blog and when I changed my permalink structure to /%postname%/ I get a Page Not Found error. I want my url to look like this:

not this:

I read a few posts about changing .htaccess but found no clear solution. Any code examples welcome or recommendations on wordpress plug-ins would be greatly appreciated.

Update I thought it would be important to mention that my host is running IIS7 but does not allow users to touch it. In addition, I'm uncertain of any restrictions on the .htaccess file or any other configuration limitations.


Generally when you fill out the structure, if the .htaccess file is writable it will apply the rewrite for you, and if it isn't it will show what the contents should be at the very bottom of the page. Did you check the bottom of the page if it is not writable?

You do NOT have to code this yourself.

By : Cyclone

.htaccess files only apply to Apache (well, maybe some other servers use it too, but not IIS). AFAIK URL rewriting for IIS is possible, but not as easy.

ISAPIRewrite appears to be a commercial application that does this, but of course, you'd need to get it installed on your server.

Personally, I wouldn't lose any sleep over having /index.php/ in your urls.

By : nickf

This video can help you solving your question :)
By: admin