Introduction

Frame forwarding is a method used to display the content of one URL inside another URL without changing the address shown in the browser. This technique is commonly used when you want visitors accessing the main domain to view content from a subdirectory while keeping the original URL unchanged.

For example, users visiting http://example.com can view the content from http://example.com/kb while the browser continues to display http://example.com.


Prerequisites

Before configuring frame forwarding, ensure the following:

  • Access to the website files through cPanel File Manager or FTP.
  • An existing subdirectory (for example, /kb) containing the website content.
  • Permission to edit or create the index.html file in the root directory.
  • Basic knowledge of HTML file editing.

Resolution

This can be achieved using frame forwarding. Add the following code to the index.html page in the root directory and modify the directory name as required.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Frame Forwarding</title>
</head>

<frameset rows="100%,*" border="0">
    <frame src="http://example.com/kb" frameborder="0" />
</frameset>

</html>

Replace:

http://example.com/kb

with your actual target URL or directory.


Conclusion

Using frame forwarding allows you to display content from another directory without changing the visible URL in the browser. This method is useful for simple internal forwarding requirements, but it is generally recommended only for basic use cases, as modern websites typically use direct redirects or reverse proxy methods for better compatibility and SEO support.

Leave a Reply