On 4 Jan 2012 14h41 WET, nginx-forum@nginx.us wrote:
> it's not redirect. i have .php file, but no .css file.
>
> if in apache, rewrite rule is like this :
>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteRule custom.css custom.php [L,QSA]
> </IfModule>
>
It's the other way around:
location ^~ /wp-content/themes/mytheme/assets/css/custom.css {
return 302 /wp-content/themes/mytheme/assets/css/custom.php;
}
--- appa
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx