Apache->virtual host-> redirectPermanent : Browser in Firefox on mac keeps repeating the /domain/simplasearchform.html over and over again

I have the following code in my httpd.conf for virtualhost because I live to permanently redirec domain.com to domain.com/samplefolder or www.domain.com to domain.com/samplefolder
Here is what I have  
<VirtualHost IP:80>
ServerName domain.com
ServerAlias www.domain.com
ServerAdmin support@domain.com
RedirectPermanent /  http://www.domain.com/domain/simplesearchform.html
When I type in domain.com into the browser, I get domain.com/domain/simplesearchform.html/domain/simplesearchform.html/domain/simplesearchform.htm....
In other words, the /domain/simplesearchform in RedirectPermanent repeats forever in the browser.

How can I make it repeat only once (what do I need to change in the above code) so when I type in domain.com in the browser, i get domain.com/domain/simplesearchform.html instead of the ending part /domain/simplesearchform.html repeating forever.
Who is Participating?
I think you're looking for RedirectMatch:

RedirectMatch 301 ^/$  http://www.domain.com/domain/simplesearchform.html
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.