Setting Up URL Frames

cPanel FAQs, Tutorials and How To Guides
With Over 80 different features

How to setup URL Frame in cPanel

Updated: January 3, 2025
By: RSH Web Editorial Staff

Contact Us


Menu

How to set up URL Frame in cPanel

URL Frame works similar to URL redirect except that instead of redirecting the visitor to your web page, the web page will be fetched from the other server and displayed in a frame. The difference is that after redirection, the Browsers address bar will continue to display your domain name

Unfortunately, there is no tool in cPanel which would automatically set up URL frame. However, you are still able to do that using certain HTML tags in your site index file

NOTE: Only the <iframe> tag is still supported in HTML5

<frameset> and <frame> tag is no longer supported in HTML5

iframe tag

The "iframe" tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document

To set up URL frame using this tag. Insert the following code to your main index file and save the changes. (make sure example.com is replaced with the destination domain and Site Title with the actual site name you wish to be displayed in the browser tab):

<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="http://example.com"/>
</body>
</html>

frameset tag

The "frameset" element holds one or more elements, each element can hold a separate document, so there will be multiple pages fetched into your index page

To set upa URL frame using "frameset" tag. Insert the following code to your main index file and save the changes. (make sure example.com is replaced with the destination domain and Site Title with the actual site name you wish to be displayed in the browser tab):

<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="http://example.com"/>
</body>
</html>

noframes tag

The noframes tag was used as a backup tag for browsers that did not support the "frame" element. More specifically, it was useful for linking a non-frameset version of a web page or letting the user know that their browser doesn't support frames

Example code

<frameset cols="25%,25%,50%">
<frame src="frame1.htm">
<frame src="frame2.htm">
<frame src="frame3c.htm"> <noframes>Sorry, your browser does not support frames.</noframes>
</frameset>

NOTE: "noframes" and "frameset" tags are not supported in HTML5

Save your work as an .html file and upload it

See the File Manager for editing and uploading files

Tweet  Share  Pin  Email

We welcome your comments, questions, corrections and additional information relating to this article. Please be aware that off-topic comments will be deleted.
If you need specific help with your account, feel free to contact us anytime
Thank you

From the imaginative minds of our master copywriters

Simple, Fast and Secure cPanel Hosting