Answer the question
In order to leave comments, you need to log in
How to load a page in a frame?
How to load requested page in iframe using htaccess and php?
We want the request for index.html to load a page with a frame containing the actual index.html.
I did this:
.htaccess
RewriteEngine on
RewriteRule ^(.*)\.html2$ $1.html [L]
RewriteRule ^(.*)\.html$ index.php?page=$1 [L]
<iframe src="<?php echo $_GET['page']; ?>.html2" frameborder="0"></iframe>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question