htaccess to Nginx converting… help please

Please help none of these online converters seem to work.. Tried everything..

    RewriteEngine On
RewriteBase /


# external redirect from action URL to pretty one
#RewriteCond %{THE_REQUEST} /search(?:.php)??q=([^s&]+) [NC]
#RewriteRule ^ %1? [R=302,L,NE]

# internal forward from pretty URL to actual URL
RewriteRule ^([^/.]+)/?$ search.php?q=$1 [L,QSA,NC]

#remove trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]




Options +FollowSymLinks 
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /view.php?id=$1&slug=$2 [L]


Source: .htaccess

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.