Jump to content


Photo

redirect question


  • Please log in to reply
1 reply to this topic

#1 jpratt

jpratt
  • Members
  • PipPipPip
  • Advanced Member
  • 144 posts

Posted 10 October 2006 - 09:53 PM

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?

#2 Firemankurt

Firemankurt
  • Members
  • PipPipPip
  • Advanced Member
  • 56 posts
  • LocationWashington State

Posted 10 October 2006 - 10:58 PM

I am not sure what you are after but I know you can include html pages into php pages like:

<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>
You would save this as a php file.

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

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

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

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users