Bueno miren e convertido el siguiente código que tenia en mi .htaccess de mi apache (XAMPP) a nginx
Mi duda es la siguiente donde debo de colocar el código de nginx igual que en apache en un .htaccess en la raíz de mi sitio web? :rolleyes:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} DIRECCIONIPDELSERVER$ [NC]
RewriteRule ^(.*)$ http://misitioweb.com [L,R=301]
</IfModule>
# nginx configuration
location / {
if ($http_host ~* "DIRECCIONIPDELSERVER$"){
rewrite ^(.*)$ http://misitioweb.com redirect;
}
}
En el vhost de tu dominio o en el respectivo nginx.conf. Nginx NO soporta archivos tipo .htaccess.
http://www.nginxtips.com/why-doesnt-nginx-support-htaccess-files/
Saludos