Linked Questions

Popular Questions

<VirtualHost *:80>
 DocumentRoot /var/www/html/abc

 RewriteEngine On
    # If an existing asset or directory is requested go to it as it is
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
    RewriteCond %{REQUEST_URI} !^/adl/$
    RewriteRule ^ - [L]
    # If the requested resource doesn't exist, use index.html
    RewriteRule ^ /index.html

alias /adl /opt/dl

I have a virtual host setup like this and it works perfectly fine. Now I want if there is /adl in the path that rewrite rule should not applied and I have a alias for it directed to a path in my machine directory structure.

Related Questions