Jump to content

redirect question


jpratt

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?
Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.