Removing index.cfm from url with web config

前端 未结 2 1448
春和景丽
春和景丽 2021-01-18 12:31

quick question -

Currently my urls look like this: index.cfm/camp/another-test

I would like for them to look like this: camp/another-test

2条回答
  •  一生所求
    2021-01-18 13:12

    I believe CFWheels requires that you route rewrite requests through rewrite.cfm not index.cfm.

    See the comment by Chris Peters on this question

    If you adjust:

    
      
        
          
          
            
          
          
        
      
    
    

    to:

    
      
        
          
          
            
          
          
        
      
    
    

    it should solve your problem, provided you have:

    
    

    within /config/settings.cfm

提交回复
热议问题