I have two web pages.
I want to deploy these two pages on one domain.
When I call the root URL, I want to load the index.html in root directory, and for other URLs, I want to load the index1.html in the /app directory.
This is the directory structure.
www.example.com/index.html
www.example.com/app/index1.html
For example:
when request www.example.com
loading index.html
For www.example.com/login
loading /app/index1.html
For www.example.com/signup
loading /app/index1.html
This is what I have tried.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ /app/index1.html [R=301,L]
</IfModule>
This make redirection when I request www.example.com/signup to www.example.com/app/index1.html.
But I want to load app/index1.html without redirection. Please help me.