Welcome! Log In Create A New Profile

Advanced

Re: rewrite all php+args to php+args.html Q?

June 08, 2011 11:54AM
On Wed, Jun 08, 2011 at 11:26:51AM -0400, izrodix wrote:
> Hello Nginx Gurus,
> We have a local mirrored with wget web site.
> All dynamic files are saved like this "list.php?type=80.html
> [*.php?some args dot html]" but in href tags are
> <a href="list.php?type=80">
> How can we rewrite requested files to local html files except images,
> css and js which are ok.

You may try

location / {
root /path/to/files; # images, css, js
}

location ~ \.php$ {
alias /path/to$request_uri.html;
}


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

rewrite all php+args to php+args.html Q?

izrodix June 08, 2011 11:26AM

Re: rewrite all php+args to php+args.html Q?

Igor Sysoev June 08, 2011 11:54AM

Re: rewrite all php+args to php+args.html Q? - solved

izrodix June 08, 2011 07:57PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 302
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