I want to redirect all pages on my site (including index) to UnderWork.html
and I'm doing this using .htaccess
with this code:
RewriteEngine on
RewriteRule ^(.*)$ UnderWork.html
...and its works fine.
Now I am adding some more code to my .htaccess
to redirect all traffic to the non-www domain and now my code looks like this:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domain\.in
RewriteRule ^(.*)$ http://domain.in$1 [R=permanent,L]
RewriteRule ^(.*)$ UnderWork.html
Here is where I have a problem. If I enter a URL like: domain.in/xyz
then it works as before, but if I use a URL like: www.domain.in/xyz
then Apache converts it to coincart.inxyz/
.
What am I doing wrong here? How can I get what i want? Thanks in advance.