HTML Case Sensitive Issues

前端 未结 8 1356
醉酒成梦
醉酒成梦 2021-01-28 09:10

We have a site that\'s always been deployed on a windows server with no case sensitivity issues. However we now need to deploy to Linux and know the site has lots of incorrectl

8条回答
  •  孤独总比滥情好
    2021-01-28 10:05

    The best way is to fix your urls, alternatively, you can add the following rewrite rules to your .htaccess

    RewriteEngine on
    RewriteRule ^[A-Z]+.*\.html$ lowercase.php [L]
    

    and within lowercase.php (change according to your technology)

    
    

    Ensure that all your filenames are lowercased.

提交回复
热议问题