Welcome! Log In Create A New Profile

Advanced

Re: rewrite rule custom.php to custom.css

António P. P. Almeida
January 04, 2012 09:30AM
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
Subject Author Posted

rewrite rule custom.php to custom.css

od3n January 04, 2012 09:12AM

Re: rewrite rule custom.php to custom.css

António P. P. Almeida January 04, 2012 09:30AM

Re: rewrite rule custom.php to custom.css

od3n January 04, 2012 09:41AM

Re: rewrite rule custom.php to custom.css

António P. P. Almeida January 04, 2012 09:54AM

Re: rewrite rule custom.php to custom.css

AndriesLouw January 07, 2012 09:00AM

Re: rewrite rule custom.php to custom.css

António P. P. Almeida January 07, 2012 05:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready