Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Dreamweaver .htaccess prepend

Guest
Jul 16, 2010 Jul 16, 2010

Copy link to clipboard

Copied

In my .htaccess file, I'm using such things as the following:
php_value    include_path            ".:/usr/local/php-5.2.6-1/share/pear:/nfs/c03/h05/mnt/foo/domains/bar/html"
php_value    doc_root                "/nfs/c03/h05/mnt/foo/domains/bar/html"
php_value    open_basedir            "/nfs/c03/h05/mnt/foo/"

php_value    auto_prepend_file        "modules/template/prepend.php"

How can I get Dreamweaver to read the .htaccess file so that it can find all the related files properly?  For example, most of my site's PHP files include modules/template/header.php but because Dreamweaver isn't detecting the include_path, it can't find the header file.  As a result of that, the CSS files are automatically loaded.

Thanks,

LSTC Webmaster

TOPICS
Server side applications

Views

1.8K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 16, 2010 Jul 16, 2010

Copy link to clipboard

Copied

LATEST

LSTCWebmaster wrote:

How can I get Dreamweaver to read the .htaccess file so that it can find all the related files properly?

You can't.

Dreamweaver CS5 will use your .htaccess file in Live View, but that's no use to you in discovering related files for editing. However, you can set up Site-Specific Code Hints in DW CS5, which provides code introspection and code hints for files that are not necessarily directly linked to the current page. Also DW CS5 will discover dynamically related files.

None of this works in versions earlier than CS5.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines