开发者

Rewrite Rule not working on 1and1 server

After 4 hours of thinking i'm stupid i checked it on another hoster and it works. But it does not work on a 1and1 server.

There are to ways that route to style.css

This one routes style.1234567.css:

RewriteRule ^(.+).(\d+).(js|css|png|jpg开发者_运维百科|gif)$ $1.$3 [L]

and this one style-fb1234567.css:

RewriteRule (.)-fb\d+.(.)$ $1.$2 [L]

but just on this server it does not. All the other rewrites in my htaccess work. I also toke them out to see if another rule does stop this two from working. But thats not the case. So what i'm doing wrong?


Try this.

RewriteRule (.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
RewriteRule (.+)-fb\d+\.(.+)$ $1.$2 [L]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜