Welcome! Log In Create A New Profile

Advanced

Re: rewrite question - "(css/js).php" to "(.css/.js)"

October 24, 2010 11:59AM
Hi, thx for the help... :-) .... this is what I made ->

[code]
## Optimierung - "(css/js).php" to "(css/js)"
location /wp-content/plugins/wp-special-textboxes/css/ {
location ~* \.(css.php)$ {
if ($args ~* ver=(.*)$) {
rewrite ^ $scheme://$host/wp-content/cache/wp-special-textboxes.css? permanent;
}
}
}
location /wp-content/plugins/wp-special-textboxes/js/ {
location ~* \.(js.php)$ {
if ($args ~* ver=(.*)$) {
rewrite ^ $scheme://$host/wp-content/cache/wstb.js? permanent;
}
}
}
[/code]

and a second thx for the tip with the "SERVER_PORT" :-) ... I found this in the theme ...

[code]
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$request;
[/code]

und changed it to ...

[code]
$pageURL .= $_SERVER["SERVER_NAME"].":80".$request;
[/code]
Subject Author Posted

rewrite question - "(css/js).php" to "(.css/.js)"

voku October 23, 2010 04:43PM

Re: rewrite question - "(css/js).php" to "(.css/.js)"

Francis Daly October 24, 2010 07:34AM

Re: rewrite question - "(css/js).php" to "(.css/.js)"

voku October 24, 2010 11:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready