I\'m working on testing out a free helpdesk script on my site. I was able to get the script installed after some troubleshooting but it\'s still not working.
The error th
In case anyone was being kept up awake trying to solve this for me I wanted to post the solution I found before I went to bed.
After much searching about apache and php settings I finally came across information on the .htaccess file. For those of you who don't know (like me) what an .htaccess is here is the definition from the apache.org site:
.htaccess files (or "distributed configuration files") provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.
In the parent directory from where my hesk script is located I had a .htaccess file that has these lines in it :
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^filename/([A-Za-z0-9_%\s\.-]+)/([0-9]+)/([0-9]+)/oneSOURCE\.html$ /functions/download2.php?file=$2&filename=$1&key=$3 [L]
RewriteCond %{REQUEST_URI} "/userfiles/documents/"
RewriteRule (.*) index.html [L]
RewriteCond %{REQUEST_URI} "/functions/download2.php"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_URI} "/functions/databaseDump.php"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_URI} "/functions/queryResults.php"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_URI} "/functions/checkForDocs.php"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_URI} "/reports/"
RewriteRule (.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(php)$ index.php/$1 [L]
RewriteRule \.(html)$ index.php/$1 [L]
RewriteRule (.*) - [L]
RewriteRule (.*) index.php/$1 [L]
I created a .htaccess file with "RewriteEngine off" in it and uploaded to the hesk directory. Now the relative paths from the original script are working just fine.
I apologize if this question and answer doesn't belong in stackoverflow. I initially thought the issue had to do with php and coding but it seems it had to do with the directory's apache configuration.
PS If anyone is curious on the route I took to find this solution feel free to ask in the comments.