Previously I had the following in my forum .htacces file (my site is in my forum directory, rather than root):
The first rule rewrites studioleaks.info to Studio Leaks.Code:RewriteCond %{HTTP_HOST} !^www\.studioleaks\.info RewriteRule (.*) http://www.studioleaks.info/forums/$1 [R=301,L]
The second rule redirects all requests to Studio Leaks to Studio Leaks.
How do I convert these rules to Nginx, and where in my vhost.conf should they be placed?
It's important I get the redirect working, since my site root (i.e. not my forum root) contains an under construction page I normally want hidden unless the site is own for repairs.


LinkBack URL
About LinkBacks





Reply With Quote

