Technote Details :: Redirect does not work on my site

Issue

Whenever a page requests a redirect to another the web server crashes, or I get an error like:

Warning: Cannot modify header information - headers already sent

I'm working with the PHP server model.

Reason

This happens because you have set Dreamweaver to use links relative to the site root. There is a bug in PHP that causes this error to occur when using redirects and site relative links. For more information regarding this bug, see the bug report here.

Solution

To solve this issue you must set your site to use links relative to the document instead of the site root. To do so:

  1. In Dreamweaver open the site definition page.
  2. Switch to the Advanced tab and select the Local Info category.
  3. Check the Document radio button, as shown in the image below:


  4. Click OK to confirm the change.

 


Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.