I want to remove index.php from url , i am using wordpress and iis7 . how can i do this
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Use this web.config
(web.config is the IIS equivalent to .htaccess file in apache webservers. It can be found in the root folder. If there is none, you need to create one.)
Then in permalinks page, set "Custom Structure" and give the value
/%postname%/
Note that URL Rewrite module specific to IIS version needs to be installed for this to function(Thanks to @Spikolynn's comment below)
Another pretty quick solution, in a situation where you uses Windows Azure websites, is to use
Microsoft WebMatrix
to login into your website and just create a web.config file as this article pointed out. That solves it. No need to install aURL Rewrite extension
or anything like that yourself. MS Webmatrix seem to solve the problem easily.