Sign in to follow this  
loneking37

(Closed) Can someone please help me figure this out (Closed)

Recommended Posts

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">



   
       
   
   
   
   
   
   

       

Share this post


Link to post
Share on other sites

Is There no one who can tell me the problem?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

 

Capture.png

 

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this