How to configure URL Frame in cPanel

URL Frame is an alternative to cPanel’s URL Redirect feature. It allows you to fetch and display content from another URL in a frame when a user visits a designated URL. Unlike URL Redirection, the browser’s address bar will continue to show your domain name. To configure URL Frame in cPanel, you’ll need to edit the HTML file the user will visit manually. 

How to configure the URL Frame in cPanel

1) Log in to your HostPapa Dashboard.

log-in-to-dashboard

2) Click on My cPanel or My WordPress.

click-on-cpanel

3) Select Files > File Manager from the cPanel menu.

click-file-manager

4) Right-click your site’s index file (or the page file into which you wish to add the URL frame) and select Edit from the context menu.

File Manager

5) Enter the following code into the page:

<html>
 <head>
 <title> Site Title </title> 
 </head>
 <style>
 body {
     margin: 0;
     padding: 0;
 }
 body, iframe {
     width: 100%;
     height: 100%;
 }
 iframe {
     border: 0;
 }
 </style>
 <body>
 <iframe src="https://entertheURLhere.com"/>
 </body>
 </html>

6) Be sure to change entertheURLhere.com to the URL you wish to display in the frame.

7) Save the file and test the URL in your web browser.

If you need help with your HostPapa account, please open a support ticket from your dashboard.

Related Articles

Get online with our affordable web hosting

Get online with our affordable web hosting

Learn more now
HostPapa Mustache