{"id":2208,"date":"2025-01-28T23:12:55","date_gmt":"2025-01-28T23:12:55","guid":{"rendered":"https:\/\/telahosting.com\/manual\/?p=2208"},"modified":"2025-01-28T23:12:55","modified_gmt":"2025-01-28T23:12:55","slug":"how-to-set-up-url-frame-in-cpanel","status":"publish","type":"post","link":"https:\/\/telahosting.com\/manual\/how-to-set-up-url-frame-in-cpanel\/","title":{"rendered":"How to Set Up URL Frame in cPanel"},"content":{"rendered":"<p><img data-dominant-color=\"55575f\" data-has-transparency=\"false\" style=\"--dominant-color: #55575f;\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2226 aligncenter not-transparent\" src=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/How-Nameservers-Work-with-Domain-and-Hosting-Connections-711x400.avif\" alt=\"How to Set Up URL Frame in cPanel\" width=\"711\" height=\"400\" \/><\/p>\n<p><b>URL Frame<\/b>\u00a0works 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 browser&#8217;s address bar will continue to display your domain name.<\/p>\n<p>Unfortunately, there is no tool in cPanel that would automatically set up a <strong>URL<\/strong> frame. However, you are still able to do that using certain HTML tags in your site index file.<\/p>\n<div>\n<ul>\n<li>&lt;iframe&gt; tag<\/li>\n<\/ul>\n<\/div>\n<p>The &lt;iframe&gt; tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.<\/p>\n<div>To set up URL frame using this tag, insert the following code into your main index file and save the changes (make sure\u00a0<i>example.com<\/i>\u00a0is replaced with the destination domain and\u00a0<i>Site Title<\/i>\u00a0with the actual site name you wish to be displayed in the browser tab):<\/div>\n<div><\/div>\n<div><i>&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt; Site Title &lt;\/title&gt;<br \/>\n&lt;style&gt;<br \/>\nbody {<br \/>\nmargin: 0;<br \/>\npadding: 0;<br \/>\n}<br \/>\nbody, iframe {<br \/>\nwidth: 100%;<br \/>\nheight: 100%;<br \/>\n}<br \/>\niframe {<br \/>\nborder: 0;<br \/>\n}<br \/>\n&lt;\/style&gt;<\/i><br \/>\n<i>\u00a0&lt;\/head&gt;<\/i><\/div>\n<div><i>\u00a0&lt;body&gt;<br \/>\n&lt;iframe src=&#8221;http:\/\/<\/i><i>example.com&#8221;&gt;\u00a0&lt;\/iframe&gt;<br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/i><\/div>\n<div><\/div>\n<div>The &lt;noframes&gt;\u00a0 element holds one or more\u00a0<i><\/i>elements, each\u00a0<i><\/i>element can hold a separate document, so there will be multiple pages fetched into your index page.<\/div>\n<p><span style=\"color: #333333; font-size: 14.4px;\">To set up URL frame using the &lt;noframes&gt; tag, insert the following code into your main index file and save the changes (make sure <\/span><i style=\"color: #333333; font-size: 14.4px;\">example.com<\/i><span style=\"color: #333333; font-size: 14.4px;\">\u00a0is replaced with the destination domain and\u00a0<\/span><i style=\"color: #333333; font-size: 14.4px;\">Site Title<\/i><span style=\"color: #333333; font-size: 14.4px;\">\u00a0with the actual site name you wish to be displayed in the browser tab):<\/span><\/p>\n<div><b>\u00a0<\/b><\/div>\n<div><i>&lt;html&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;Site Title&lt;\/title&gt;<br \/>\n&lt;\/head&gt;<br \/>\n&lt;frameset cols=&#8221;50%,50%&#8221;&gt;<br \/>\n&lt;frame src=&#8221;https:\/\/example.com&#8221;&gt;<br \/>\n&lt;noframes&gt;Sorry, your browser doesn\u2019t support frames. &lt;\/noframes&gt;<br \/>\n&lt;\/frameset&gt;<br \/>\n&lt;\/html&gt;<\/i><b><br \/>\n<\/b><\/div>\n<div><b>\u00a0<\/b><\/div>\n<div><b>NOTE 1:<\/b><i><\/i>\u00a0&lt;noframes&gt;&lt;\/noframes&gt; tags are not supported in HTML5. Starting from it, only &lt;iframe&gt; tag is used.<\/div>\n<p><b>NOTE 2:\u00a0<\/b>Both tags are used to frame static websites mostly. There is no way to guarantee a proper performance if you set URL frame for a non-static website.<\/p>\n<p><span style=\"font-size: 14.4px;\">To edit the index file for the domain, do the following:<\/span><\/p>\n<p><span style=\"color: #333333; font-size: 14.4px;\">1. Log into <\/span><b style=\"color: #333333; font-size: 14.4px;\">cPanel<\/b><span style=\"color: #333333; font-size: 14.4px;\">.<\/span><\/p>\n<div><span style=\"font-size: 14.4px;\">2. Navigate to the section <\/span><b style=\"font-size: 14.4px;\">Files<\/b><span style=\"font-size: 14.4px;\">\u00a0&gt;\u00a0<\/span><b style=\"font-size: 14.4px;\">File Manager\u00a0<\/b><span style=\"font-size: 14.4px;\">menu:<\/span><\/div>\n<div><\/div>\n<div><\/div>\n<div><img data-dominant-color=\"fbfafa\" data-has-transparency=\"false\" style=\"--dominant-color: #fbfafa;\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2217 size-medium not-transparent\" src=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-50-png-e1738103423887-800x331.avif\" alt=\"\" width=\"800\" height=\"331\" srcset=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-50-png-e1738103423887-800x331.avif 800w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-50-png-e1738103423887-768x318.avif 768w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-50-png-e1738103423887.avif 1366w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/div>\n<div><\/div>\n<div>\n<p>3. Move to the document root option for your domain you need to set up URL frame for.<\/p>\n<p>If it is the main domain for your hosting account, you need to go to\u00a0<b>public_html<\/b>\u00a0folder. If it is an addon domain, the folder will be\u00a0<b>public_html\/addondomain.com<\/b>.<\/p>\n<p>We have\u00a0<b>public_html<\/b> in our case:<\/p>\n<\/div>\n<div><\/div>\n<div><img data-dominant-color=\"e4e5e6\" data-has-transparency=\"false\" style=\"--dominant-color: #e4e5e6;\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-2218 size-medium aligncenter not-transparent\" src=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-51-png-e1738103552604-800x393.avif\" alt=\"\" width=\"800\" height=\"393\" srcset=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-51-png-e1738103552604-800x393.avif 800w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-51-png-e1738103552604-768x377.avif 768w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-51-png-e1738103552604.avif 1154w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/div>\n<div><\/div>\n<div>4. Once you are in the root directory of your domain, create an <b>index.html<\/b>\u00a0file by clicking on\u00a0<b>File<\/b><\/div>\n<div>:<\/div>\n<div><img data-dominant-color=\"dbdcdc\" data-has-transparency=\"false\" style=\"--dominant-color: #dbdcdc;\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-2223 size-medium aligncenter not-transparent\" src=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-56-png-e1738103889589-800x388.avif\" alt=\"\" width=\"800\" height=\"388\" srcset=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-56-png-e1738103889589-800x388.avif 800w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-56-png-e1738103889589-768x373.avif 768w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-56-png-e1738103889589.avif 1366w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/div>\n<div><\/div>\n<div>5. Right-click on the file and select\u00a0<b>Edit<\/b>:<\/div>\n<div><\/div>\n<div><img data-dominant-color=\"e2e4e5\" data-has-transparency=\"false\" style=\"--dominant-color: #e2e4e5;\" loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2221 aligncenter not-transparent\" src=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-54-711x400.avif\" alt=\"\" width=\"711\" height=\"400\" srcset=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-54-711x400.avif 711w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-54-768x432.avif 768w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-54-png.avif 1366w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/div>\n<div><\/div>\n<div>6. Insert the code for setting up URL Frame and\u00a0<b>Save Changes<\/b>:<\/div>\n<div><\/div>\n<div><img data-dominant-color=\"f6f5f6\" data-has-transparency=\"false\" style=\"--dominant-color: #f6f5f6;\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-2222 size-medium aligncenter not-transparent\" src=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-55-png-e1738104159845-800x143.avif\" alt=\"\" width=\"800\" height=\"143\" srcset=\"https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-55-png-e1738104159845-800x143.avif 800w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-55-png-e1738104159845-768x138.avif 768w, https:\/\/telahosting.com\/manual\/wp-content\/uploads\/2025\/01\/telahosting-55-png-e1738104159845.avif 1366w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/div>\n<div><\/div>\n<div>With this, you can successfully set up URL Frame in cPanel. Happy Hosting<\/div>\n","protected":false},"excerpt":{"rendered":"<p>URL Frame\u00a0works 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 browser&#8217;s address bar will continue to display your domain name. Unfortunately, there is no tool in&#8230;<\/p>\n","protected":false},"author":10,"featured_media":2226,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[32,21],"tags":[40,37,34],"class_list":["post-2208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-hosting","tag-cpanel","tag-guide","tag-web-hosting"],"_links":{"self":[{"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/posts\/2208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/comments?post=2208"}],"version-history":[{"count":0,"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/posts\/2208\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/media\/2226"}],"wp:attachment":[{"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/media?parent=2208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/categories?post=2208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/telahosting.com\/manual\/wp-json\/wp\/v2\/tags?post=2208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}