I'm thinking of converting a forum site from apache to nginx but they have this .htaccess in root of their account and not sure if there's a nginx equivalent ??
Any help would be appreciated :)
htaccess contents are:
RewriteEngine on
ErrorDocument 404 /foro/404.php
RedirectMatch 301 "^/forum/?$" "http://www.domain.com/foro"
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 201.xxx.xx.xxRewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://jorn.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://jorn.domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://webring.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://webring.domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.jorn.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.jorn.domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.webring.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.webring.domain.com$ [NC]
RewriteRule .*\.(jpg|JPG|JPEG|GIF|jpeg|gif|png|bmp|mov|mpeg|mpg)$ http://www.domain.com [R,NC]