How to Set Up URL Frame Forwarding in cPanel Print

  • url forwarding, frame forwarding, cpanel, html frames, domain forwarding, redirects, frameset, url masking
  • 2

URL frame forwarding in cPanel requires creating a custom HTML file since cPanel doesn't include a built-in URL frame feature. You can set up frame forwarding by creating an index.html file with frameset code that displays another website's content while keeping your domain name in the browser's address bar.

What is URL Frame Forwarding?

URL frame forwarding displays content from one website within an HTML frame on your domain, maintaining your domain name in the visitor's browser. Unlike standard redirects that change the URL in the address bar, frame forwarding keeps your original domain visible while showing content from the destination URL.

Creating Your Frame Forwarding HTML File

To set up URL frame forwarding at OBHost, you'll need to create an HTML file with frameset code. Follow these steps:

Step 1: Create the HTML File

Log into your cPanel account and navigate to the File Manager. Create a new file named index.html in your public_html directory (or the appropriate subdomain folder).

Step 2: Add the Frame Code

Copy and paste the following HTML code into your index.html file:

<html>
<head>
<title>Your Page Title Here</title>
</head>
<frameset>
<frame src="http://destination-website.com">
</frameset>
<noframes>Your browser does not support frames. Please click <a href="http://destination-website.com">here</a> to continue.</noframes>
</html>

Step 3: Customize the Code

Replace the following elements in the code:

  • Your Page Title Here: The text that appears in the browser tab
  • http://destination-website.com: The actual URL you want to display in the frame (use this URL in both places it appears)
  • Customize the noframes message if desired

Step 4: Save and Test

Save the file and visit your domain in a web browser to verify the frame forwarding works correctly. The destination website should appear while your domain remains in the address bar.

Important Considerations

Before implementing URL frame forwarding, keep these factors in mind:

  • File naming: Use index.html as the filename if this is your main homepage
  • Browser compatibility: Modern browsers support frames, but the noframes tag provides fallback for older browsers
  • SEO impact: Frame forwarding can negatively affect search engine rankings since search engines see the frame code, not the destination content
  • Security: Some websites block being displayed in frames using X-Frame-Options headers
  • Mobile responsiveness: Frames may not display properly on mobile devices

Alternative URL Forwarding Methods

If frame forwarding doesn't meet your needs, consider these alternatives available in cPanel:

  • 301 Redirect: Permanent redirect that changes the URL in the address bar
  • 302 Redirect: Temporary redirect that also changes the displayed URL
  • Meta refresh: HTML-based redirect with optional delay
  • .htaccess redirects: Server-level redirects with more control and better SEO

These methods can be configured through cPanel's Redirects feature or by editing your .htaccess file directly.

Frequently Asked Questions

Why doesn't cPanel have a built-in URL frame feature?

Frame forwarding has fallen out of favor due to SEO disadvantages, security concerns, and poor mobile compatibility. Most modern hosting control panels focus on redirect methods that are more search-engine friendly and provide better user experiences across all devices.

Will URL frame forwarding affect my website's SEO?

Yes, frame forwarding typically has negative SEO consequences. Search engines index the frame code rather than the destination content, which can result in poor search rankings. If SEO is important for your website, consider using 301 redirects instead or hosting the actual content on your domain.

What happens if the destination website blocks frames?

Many websites use X-Frame-Options headers to prevent their content from being displayed in frames as a security measure against clickjacking attacks. If the destination site blocks frames, visitors will see an error message or blank page instead of the expected content.

Can I use HTTPS URLs in my frame forwarding setup?

Yes, you should use HTTPS URLs if the destination website supports SSL. If your OBHost domain uses HTTPS, you must frame HTTPS destinations to avoid mixed content warnings in modern browsers. Update the src attribute to use https:// instead of http:// in the frame code.

If you need assistance setting up URL frame forwarding or have questions about the best redirect method for your situation, the OBHost support team is available 24/7. Visit our contact page or email support@obhost.org for help.


Was this answer helpful?

« Back