To have my WP blog run from my website root directory, I transferred the .htaccess and the index.php files from the subdirectory WP is installed in to the webroot (as instructed on the option/configuration page).
Additionally, I wrote a php upload form for my site. I had to configure the php.ini file to allow file access on my site so I could transfer files from the temp directory on the apache server to a directory in my website. After configuring the php.ini file I was instructed to drop this block of code into a .htaccess file on my webroot:
Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
Therein lies the problem. The .htaccess already exists from WP with the following contents:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
If I put both blocks of code in the .htaccess file (regardless of the order), my WP page can't load.
So how can I keep the functionality of my WP blog to not run off of the subdirectory (www.site.com/wordpress) but also put in the new code for my php upload form?