where do I put the PIE.htc file (for making IE work with CSS3) when I'm using cakephp

后端 未结 4 989
孤街浪徒
孤街浪徒 2021-01-02 02:32

I\'m trying to use PIE.htc, which is a script which hopefully will allow me to use CSS3 features in IE6-8. I\'m also using Cakephp (which I\'m growing to love)

Accor

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-02 03:04

    I was using CodeIgniter with a mod_rewrite. Based on Septagram's answer I got the following to work

    RewriteEngine on
    
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    
    #if the url contains PIE.php redirect to the folder containing PIE.php
    RewriteCond %{REQUEST_URI} PIE.php$
    RewriteRule ^.*$ css3pie/PIE.php [NC,L]
    
    #else just redirect to index
    RewriteRule ^.*$ index.php [NC,L]
    

    Hope this helps someone

提交回复
热议问题