apache - how to configure nginx to rewrite all the requests to a bootstrap php file -


i'm planning migrate apache nginx, rewritting stuff keep dragging me down. depressed!

when in apache .htaccess, have single line right thing:

rewriterule .* index.php/$0 [pt,l] 

that means like:

http://example.com/a/b/c/d 

will rewritten to:

http://example.com/index.php/a/b/c/d 

when stepped nginx, expecting same thing single line of code in conf:

rewrite ^(.*) /index.php/$1     last; 

but, keeps giving me 404 page?!

it's single line of code indeed:

try_files $uri $uri/ /index.php?$args; 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -