loneking37 1 I'm trying to upload my website, but the index.html file can't be accessed through webbrowser and comes out as an 403 error. I looked through the code and narrowed down the problem to this code that just wont work with me i also tried looked through google with no luck... I tried to run the index.html file on my pc and it worked fine, but i cant make it work on the website i have. heres the code that wont work: src="../pagead2.googlesyndication.com/pagead/f.txt"> Quote Share this post Link to post Share on other sites
loneking37 1 Is There no one who can tell me the problem? Quote Share this post Link to post Share on other sites
user096 0 403 is a access denied error, have you tried it on another hosting platfrom? and make sure on your hosting the index.html the permission of public is read. if you disabled it it will obviously end it 403 Quote Share this post Link to post Share on other sites
loneking37 1 403 is a access denied error, have you tried it on another hosting platfrom? and make sure on your hosting the index.html the permission of public is read. if you disabled it it will obviously end it 403 I haven't tried any other host yet, but i did put permissions on public. I might try it on another host, thanks for the advice Quote Share this post Link to post Share on other sites
Hans420 84 403 is a access denied error, have you tried it on another hosting platfrom? and make sure on your hosting the index.html the permission of public is read. if you disabled it it will obviously end it 403 I haven't tried any other host yet, but i did put permissions on public. I might try it on another host, thanks for the advice Does your site have an .htaccess? Or do you have access to apache's conf/httpd.conf? You should continue to get the same error no matter what document you upload for your index. I'd just upload a simple 'Hello World!' document until you are certain your site is accessible. Quote Share this post Link to post Share on other sites
loneking37 1 Does your site have an .htaccess? Or do you have access to apache's conf/httpd.conf? You should continue to get the same error no matter what document you upload for your index. I'd just upload a simple 'Hello World!' document until you are certain your site is accessible. No, the site does not have a .htaccess file and I was confused by this too, but I have been through all the tests I could think of regarding that part of the code with no luck... But the site is accessible only the part I posted is the problem, the site works fine Quote Share this post Link to post Share on other sites
Hans420 84 Does your site have an .htaccess? Or do you have access to apache's conf/httpd.conf? You should continue to get the same error no matter what document you upload for your index. I'd just upload a simple 'Hello World!' document until you are certain your site is accessible. No, the site does not have a .htaccess file and I was confused by this too, but I have been through all the tests I could think of regarding that part of the code with no luck... But the site is accessible only the part I posted is the problem, the site works fine In PHP and JS the file selectors are different. ../ functions differently. It appears to be pointing past your root folder which may be what is causing your issues. Although I'm not positive as I don't know your folder structure. Quote Share this post Link to post Share on other sites
loneking37 1 In PHP and JS the file selectors are different. ../ functions differently. It appears to be pointing past your root folder which may be what is causing your issues. Although I'm not positive as I don't know your folder structure. what do you mean, the PHP and JS the file selectors are different? and how is it pointing past my root folder? I got the files for the website from someone, so I'm not sure how they are set up, I just copy pasted and played with everything till I found the problem Edit: I now notice that my mistake was never the code. I had every folder on a wrong permission code, everything works fine now... Thanks for all your help :) +Like on your posts here Quote Share this post Link to post Share on other sites