title: Apache URL redirect within same domain
body: <p>I have a site with URL abc.com. Now what I want is whenever that URL is being hit in browser it should redirect to www.abc.com/index.jsp. How this can be done using apache ?</p>
  
  <p>Here's what I have done: </p>
  
  <blockquote>
    <p>VirtualHost *:80></p>
  
  <pre><code>ProxyRequests off
  ProxyPreserveHost On
      &lt;Proxy *&gt;
              Order deny,allow
              Allow from all
      &lt;/Proxy&gt;
      ProxyPass / http://localhost:8080/
  ProxyPassReverse /  http://localhost:8080/
  
  # Possible values include: debug, info, notice, warn, error, crit,
  # alert, emerg.
  LogLevel error
  
  &lt;Location /&gt;
              Options +ExecCGI
              AddHandler cgi-script .cgi
              AuthType basic
              AuthName "private area"
              AuthUserFile  "/etc/httpd/conf/.htpasswd"
              Require valid-user    &lt;/Location&gt; &lt;/VirtualHost&gt;
  </code></pre>
  </blockquote>