Jump to content

Archived

This topic is now archived and is closed to further replies.

jpratt

redirect question

Recommended Posts

I am using the meta tag redirect in my html like so:

<meta http-equiv="refresh" content="5; url=http://www.newsite.com">

I need the user to be able to have the choise to be able to go to the new site or go to the old htm page they were pointed to. I can not take down the old site. Any php solutions? Most users come in through google to specific pages. Is there a way to do this with php without renaming my old htm files?

Share this post


Link to post
Share on other sites
I am not sure what you are after but I know you can include html pages into php pages like:

[code]
<html>
<head>
</head>
<body>

<?php
echo "some PHP content";
?>

<IFRAME SRC="recipe.html" TITLE="The Famous Recipe">
<!-- Alternate content for non-supporting browsers -->
<H2>The Famous Recipe</H2>
<H3>Ingredients</H3>
....
</IFRAME>
</body>
</html>
[/code]
You would save this as a php file.

You could also insert php into an html page like:
HtmlPageWithPhpInside.htm
[code]
<html>
<head>
</head>
<body>

<?php
echo "some PHP content";
?>
html... blah... blah...
</body>
</html>
[/code]

and then include this in a php doc.
New.php
[code]
<?php
include ('HtmlPageWithPhpInside.htm');
?>
[/code]

Anyway... If you give me more info I can see if there is more I can help with.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.