How can I remove index.php from url in wordpress on IIS 2.0 server.
my htacess is like below , but it did not worked for me
# 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
Basically, your rewrite settings are correct. You also need to provide the correct configuration for wordpress. Go to
Settings > Permalinksand check if you have set everything you need there. Choose something, but not “default”.Edit
arr, you’re on IIS. You don’t have a
mod_rewritemodule there because mod_rewrite is an apache module. Remove the<ifModule>tags and try again.