Live Chat Software by Kayako |
[ACT] Failed to open stream: No such file or directory (.htaccess) - On Godaddy Hosting.
Posted by , Last modified by Ioana Berry on 24 January 2018 02:09 PM
|
|
If you have godaddy and you're getting the following message:
Warning: file_put_contents(/var/chroot/home/content/55/xxx6655/html/x/api/.htaccess) [function.file-put-contents]: failed to open stream: No such file or directory in/home/content/55/xxx6655/html/x/calltrack/include/util.php(3) : eval()'d code on line 51
You're getting this issue because of a permission issue with godaddy. To solve this, create a '.htaccess' file in your /api/ folder of ACT, and put in:
<IfModule mod_rewrite.c> Options +FollowSymlinks Options +Indexes RewriteEngine on # if your app is in a subfolder RewriteBase /api/ # test string is a valid files RewriteCond %{SCRIPT_FILENAME} !-f # test string is a valid directory RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?uri=/$1 [NC,L,QSA] # with QSA flag (query string append), # forces the rewrite engine to append a query string part of the # substitution string to the existing string, instead of replacing it. </IfModule>
<IfModule mod_rewrite.c> Options +FollowSymlinks Options +Indexes RewriteEngine on # if your app is in a subfolder RewriteBase /calltrack/api/ # test string is a valid files RewriteCond %{SCRIPT_FILENAME} !-f # test string is a valid directory RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?uri=/$1 [NC,L,QSA] # with QSA flag (query string append), # forces the rewrite engine to append a query string part of the # substitution string to the existing string, instead of replacing it. </IfModule>
Replace 'calltrack' to your sub-folder.
We also, strongly recommend you switch your hosting provider from GoDaddy to A2 or migrate your ACT to our SaaS platform.
If you're having problems with this or need assistance, please submit a ticket. | |
|