Quantcast

how add RewriteRule .* index.php in nginx

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

how add RewriteRule .* index.php in nginx

fengx
down vote
favorite
how set add " RewriteRule .* index.php " in nginx.conf for subfolder ?

and dont redirect for root example:

https://www.bidbarg.com/ (index.php redirect to none)

https://www.bidbarg.com/bimeh/index.php/ (index.php needed)

thank you

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273883,273883#msg-273883

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how add RewriteRule .* index.php in nginx

Francis Daly
On Wed, Apr 26, 2017 at 10:22:20AM -0400, e.htabar wrote:

Hi there,

> how set add " RewriteRule .* index.php " in nginx.conf for subfolder ?

You probably put the config in a suitable location{} block.

What config do you have right now that does most of what you want?

Do you "return" or "rewrite" or "try_files" or something else?

The best config depends on what else you want the system to do.

Cheers,

        f
--
Francis Daly        [hidden email]
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Loading...