Converter fra apache til nginx?
Hvordan vil det her se ud i nginx.config?<Directory "c:/wamp/www/ProjectTest">
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
</Directory>
Jeg har prøvet :
location /
{
if (!-e $request_filename){
rewrite ^/(.*)\?*$ /index.php/$1 break;
}
}
Men virker ikke?