How to remove index.php in codeigniter on Windows Server and IIS?

后端 未结 4 1426
遥遥无期
遥遥无期 2021-02-14 10:40

How to remove index.php in codeigniter on Windows Server and IIS?

I found this when i search for answer

How to rewrite the index.php of Codeignite

4条回答
  •  Happy的楠姐
    2021-02-14 11:06

    This answer is a little more secure (paranoid) than the others, and is based on the way CakePHP does it. This assumes that you have a directory named "public" which contains all of the js, css, image, and font files. If you have other extensions you want to allow, add them to the second rule. You can change the directory name from "public" to anything be replacing the word "public" in rule 1 and 2.

    
    
        
            
                
                    
                        
                        
                    
                    
                        
                        
                    
                    
                        
                        
                    
                
            
        
    
    

提交回复
热议问题