I've read lots of threads here and in other community forums, also tried some htaccess to nginx generators, but I'm struck with this.
Thats my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !(/$|\.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
And here's my nginx configuration:
location / {
rewrite ^(.*)$ /$request_uri/ redirect;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php break;
}
}
When I run my script I'm being redirected in a loop
http://127.0.0.1////////////////////video/tkOVwe1x49C8wgi////////////////////
Will glad to get any help about this!