Remove index.php from wordpress URLs in iis7

后端 未结 2 1251
谎友^
谎友^ 2020-12-16 23:13

I want to remove index.php from url , i am using wordpress and iis7 . how can i do this

2条回答
  •  不思量自难忘°
    2020-12-16 23:38

    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)

提交回复
热议问题