On 4 Jan 2012 14h12 WET, nginx-forum@nginx.us wrote:
> hi,
>
> how can i rename custom.php to custom.css for my wordpress custom
> css.
You mean rewrite or redirect I suppose.
> let say i put my custom.php inside my theme folder
>
> http://example.com/wp-content/themes/mytheme/assets/css/custom.php
Try:
location ^~ /wp-content/themes/mytheme/assets/css/custom.php {
return 302 /wp-content/themes/mytheme/assets/css/custom.css;
}
--- appa
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx