Welcome! Log In Create A New Profile

Advanced

htaccess rewrite conversion ?

November 10, 2009 03:32AM
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]
Subject Author Posted

htaccess rewrite conversion ?

George November 10, 2009 03:32AM

Re: htaccess rewrite conversion ?

Phillip Oldham November 10, 2009 03:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 233
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready