# EMA SalesDock moved: the old address ema.azar.com.ng sends everyone to ne.salesdock.name.ng
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www\.)?ema\.azar\.com\.ng$ [NC]
    RewriteRule ^(.*)$ https://ne.salesdock.name.ng/$1 [R=301,L]
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Prevent infinite loop if DocumentRoot is already set to /public in cPanel
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteCond %{DOCUMENT_ROOT} !/public$
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
