jpratt Posted October 10, 2006 Share Posted October 10, 2006 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 https://forums.phpfreaks.com/topic/23604-redirect-question/ Share on other sites More sharing options...
Firemankurt Posted October 10, 2006 Share Posted October 10, 2006 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><?phpecho "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><?phpecho "some PHP content";?>html... blah... blah...</body></html>[/code]and then include this in a php doc.New.php[code]<?phpinclude ('HtmlPageWithPhpInside.htm');?>[/code]Anyway... If you give me more info I can see if there is more I can help with. Link to comment https://forums.phpfreaks.com/topic/23604-redirect-question/#findComment-107205 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.