FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » how do I create a redirect in a php file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how do I create a redirect in a php file [message #6649 is a reply to message #6648] Sun, 20 October 2002 23:38 Go to previous messageGo to previous message
valiant is currently offline  valiant   Switzerland
Messages: 80
Registered: September 2002
Location: Zurich
Karma:
Member
I appreciate your help and response...I learned enough PERL to be dangerous....guess I'm just going to have to do the same with PHP....<g>

great Smile

k, what you want is a site that must be named index.php and must redirect to a certain other index.php, i guess i got that now Smile

your proposal in <?php ?> wouldn't work.
the problem is that everything between php brackets is parsed and should be php code. but you place there normal html.

the way it works is a normal html redirect page (your former solution (the above one). just name the file containing the ordonary HTML index.php and it should work.

php parses only code within <?php ?> brackets. so you can produce normal html pages without any php and name the file index.php and it should work.

why don't you just try the examples yourself? Wink

good night - andy
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Parse error in line 206
Next Topic: Pop window loads link # and store it in variable
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Oct 05 07:21:55 GMT 2024

Total time taken to generate the page: 0.05068 seconds