.htaccess - PHP htaccess to nginx -
htaccess nginx getting errors
i have tried online tools no http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ , http://winginx.com/htaccess
here doing
.htaccess
rewriterule ^(.*)$ /all_drivers.php?id=$1 [qsa]
my nginx is
(try 1) *** rewrite ^/(.*)$ /all_drivers.php?id=$1 ; (try 2) *** rewrite /(.*) /all_drivers.php?id=$1 ;
this way page loading fine static files don't load ... /css.css or /js.js , index.php not loading showing all_drivers.php blank file .
i have refered this: convert htaccess nginx, no far.
@harinder: there must rewritecond based on you're applying rewiterule
the reason why saying that, according rewriterule
rewriterule ^(.*)$ /all_drivers.php?id=$1 [qsa]
whatever comes request, sending all_drivers.php.
and if desired rule, request, no matter send file only.
also nice if give complete .htaccess code segment want translated.
and please check if have configured php execution block correctly required fastcgi directives blank php's output comes in case if have not passed script_filename fastcgi directive.
Comments
Post a Comment