How Do I redirect .com/index.jsp to www.com/index.jsp ?

Discussion in 'Apache' started by jvfconsulting, Jun 12, 2009.

  1. #1
    jvfconsulting, Jun 12, 2009 IP
  2. jeffreyhuan

    jeffreyhuan Active Member

    Messages:
    354
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Try this code in .htaccess. It should be working.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^(.*)\.lendacheck\.com$ [NC]
    RewriteRule ^(.*)$ http://www.lendacheck.com/$1 [R=301,L]
     
    jeffreyhuan, Jun 12, 2009 IP
  3. jvfconsulting

    jvfconsulting Active Member

    Messages:
    1,089
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Thanks for your help anyways jeffreyhuan! Turns out that the site is running Tomcat and there is no .htaccess support!?! What do I do now?
     
    jvfconsulting, Jun 15, 2009 IP