B
bristol

  • Dec 12, 2009
  • Joined Jun 12, 2008
  • Good point! Part of the change process is to add google analytics so each page so I stand to gain more info in the long term vs. the short term loss o the ranking. The site index page did not change as it was already a .php extension.

    • I tried the changes to .htaccess without any success. I will make the move to convert all .html pages to .php. Thanks for your help.

      • I have successfully used php in the index page for a year. I recently tried to improve the site by using an include for common html code such as mastheads and footers. I have used this technique successfully in other sites where all of the pages had .html extensions. When I used the same code in the index.php it would not work. I then tried it on the non-php pages that had a .html extension and it would not work.

        I then used a php include

        <?php include ("footer.html"); ?>

        and it then worked but the include

        <!--#include virtual="footer.html"-->

        for all of the other .html pages did not work.

        Do I need to change the extension of all of the .html pages to .php and then use the php include format? Is there a way to get the .html include to work when one of the pages is using .php?

        Thanks,

        • I attempted to set up virtual hosts using http://www.lineardesign.ca/news?articleid=2 "Setting up Dreamweaver in OSX. My httypd.conf is now as follows:
          #localhost
          <VirtualHost 127.0.0.1:80>
          ServerAdmin webmaster@TestApp.com
          DocumentRoot /Users/mike/Sites/
          ServerName localhost

          ErrorLog logs/dummy-host.example.com-error_log

          CustomLog logs/dummy-host.example.com-access_log common

          </VirtualHost>

          testapp

          <VirtualHost 127.0.0.1:80>
          DocumentRoot /Users/mike/Sites/TestApp
          ServerName www.TestApp.com
          </VirtualHost>

          I then configured localhost to set up TestApp, configured the site in Dreamweaver and recycled Apache. I still get a blank page.

          The tutorial on setting up Dreamweaver did not reconcile the Adobe PHP App tutorial instructions to set up the http address when configuring local Info and Testing Server as http://localhost/~mike/TestApp/ with the path in apache.

          Any ideas of where I am going wrong?

          • I am using PHP5.2.4, Apache, MySQL on Macintosh. I can run a phpinfo.php page from the Sites folder and I get the php configuration page so php is working and Apache is processing the page. When I try to run a page from a web site directory (/sites/testapp/) I get a blank page. I am using Dreamweaver and the app directory is registered as a site but I get an error message when I use Live Data - test server is not running, test server ignores files with ".php", etc. I used the Adobe Dreamweaver Setting up a PHP environment instructions to install PHP and MySQL. If anyone can point me in the right direction to resolve this I would very appreciative.