Very strange forbidden error on my site

I created links to subfolders of my site without the presence of the index.html file (eG example.com/london/en/ waiting for the default page to load in the example.com/london/en/index.html folder), however I get a page that is simply says forbidden .

After various tests, I found that the page was loaded perfectly when you entered the URL with index.html at the end. I also found that it works fine for another html page. Therefore, it made me believe that the problem depended on this particular html page.

In the end, I narrowed the error to this line of code:

 <iframe name="hidden_iframe" id="hidden_iframe" style="display:none;" onload="if(submitted) {window.location='confirmation.html';}"></iframe> 

I found that when the style tag was removed and moved to the CSS file that we have, it loaded fine. But I do not know why this solution works! I don’t have much programming experience, maybe now someone can be here?

+7
javascript jquery html css iframe
source share
2 answers

Is your server Windows or Linux?

Forbidden = permission.

in linux type:

 chmod 777 index.html chmod 777 confirmation.html 

Update

Create or update the .htaccess file in www /

 <Directory /en> Allow from all </Directory> 
0
source share

I suspect that you do not have permission to view this folder. Try to specify the file inside this folder.

0
source share

All Articles