Jump to content
fazlionline

Redirect Page Problem

Recommended Posts

Hello allI have a link on my site for a blog.when that page opens it have a redirect script for a blog in other websitebut when i clik on blog linke the page opens but do not redirect to other page and give this error:Warning: Cannot modify header information - headers already sent by (output started at d:\Customers\user1092190\www\v2\blog\blog.php:9) in d:\Customers\user1092190\www\v2\blog\blog.php on line 10my script is this<?phpheader( 'Location: http://www.fazlionline.com/wordpress/' ) ;?>note: i have past this script in the main body tagis there any rule to put the redirect in a special place?Thanks

Share this post


Link to post
Share on other sites

If you're using the header method yes, there is a special place. You have to have that code as the very first thing on the entire page, or you'll get that error. Don't even leave a blank line before it.

Share this post


Link to post
Share on other sites

U can't put it in the <body> tag it needs to be before everything else.

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...

×
×
  • Create New...