The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

493820948320948032

Discussion in 'General Discussion' started by standardize, Oct 17, 2006.

  1. standardize

    standardize BANNED

    Joined:
    Jul 16, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    How do I setup a redirect in an htaccess file?

    I want to point domain.com to domain.com/folder/link.php
     
  2. jugo

    jugo Active Member

    Joined:
    Nov 23, 2005
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Try this:

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^domain\.com [NC]
    RewriteRule ^(.*)$ http://www.domain.com/folder/index.php [L,R=301]
    
     
  3. standardize

    standardize BANNED

    Joined:
    Jul 16, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    That did not redirect at all, only showed main domain's site
     
  4. CollateralFX

    CollateralFX Active Member

    Joined:
    Jan 19, 2005
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
  5. standardize

    standardize BANNED

    Joined:
    Jul 16, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0

Share This Page