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:54AM
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
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: 265
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