0

Hi,

I am using redirect on my index.php to redirect to a directory in server. I havent used any html tags etc just <?php redirect ?>
i want to use html meta data and tags as well.

as i am a newbie i need your help on this. because google cannot crawl and create the sitemap. help please

thanks

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by death_oclock
0

thanks for the reply. basically i have a php file but when i include html tags the redirect doesnt work. what should i do to make it work .

should i create .html file and have html tags then redirect using php or this php file is fine.......

0

You can either echo the HTML tags echo "<some_tag>html</some_tag>"; If you do this the remember to escape your quotes with \s

Or another way:

<?php
// Some PHP code
?>
some HTML code
<?php
// Some more PHP code
?>
0

when i include html tags the redirect doesnt work

Very true. You can't send header information (thats where you're redirecting) after outputting anything. All you could do is put your meta tags after the redirection code. That would be useless though, because your program will never get to this point.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.