I want to add Apache .htaccess rules. This is from old server's nginx:
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location / {
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
rewrite ^/(.*) /index.php?demand=$1;
}
How to rewrite this? All I am getting now is index page and the rest of files are not found. I am really hoping to get some help here, thanks.