Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

URL Redirect using htaccess and Index.html

Discussion in 'General Discussion' started by DC***888, Oct 17, 2017.

  1. DC***888

    DC***888 Registered

    Joined:
    Oct 17, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Singapore
    cPanel Access Level:
    Website Owner
    Dear All,

    Pardon for my IT knowledge
    Below is my coding
    Code:
    RewriteCond %{REQUEST_URI} ^example.com
    RewriteRule ^(.*)$ demo1.example.com$1 [P]
    
    Index.Html
    Code:
    <HTML>
    
    <HEAD>
    
    <TITLE>Booking System</TITLE>
    
    </HEAD>
    
    <FRAMESET>
    
    <FRAMESET rows>
    
    <FRAME src=”http://demo1.example.com“>
    
    </FRAMESET>
    
    </HTML>
    
    I tried different way of redirecting my URL .

    Firstly i am pointing my URL subdomain to another external server and The frame/iframe is not working for this case.

    basically, in short, i am trying to redirect URL to another URL with the existing URL pointing to another server. but it kept on rejecting
     
    #1 DC***888, Oct 17, 2017
    Last edited by a moderator: Oct 17, 2017
  2. Muhammed Fasal

    Muhammed Fasal Active Member

    Joined:
    Aug 9, 2017
    Messages:
    40
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
  3. cPanelRyland

    cPanelRyland cPanel Technical Analyst
    Staff Member

    Joined:
    Oct 4, 2017
    Messages:
    23
    Likes Received:
    2
    Trophy Points:
    78
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hello,

    Did the information provided above by Muhammed assist you in resolving this issue?

    As mentioned I would recommend looking into the Redirects feature should you experience any issues.

    Additionally please don't hesitate to reach out ot us should you require any further assistance.
     
Loading...

Share This Page