# 403 Forbidden Error after SSL Certificate renewal

**URL:** <https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213>\
**Category:** Hosting Support\
**Created:** [August 6, 2023, 12:04pm UTC](https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213 "2023-08-06T12:04:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pta\_55](https://forum.infinityfree.com/letter_avatar/pta_55/32/5_5575768a8748004e209b776fc1b2916d.png) [@Pta\_55](https://forum.infinityfree.com/u/Pta_55)\
**Post date:** [August 6, 2023, 12:04pm UTC](https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213/1 "2023-08-06T12:04:33Z")

</div>

### Website URL

[www.pimpleletta.com](http://www.pimpleletta.com)  
(please specify the URL of the site on which you are experiencing the problem)

### Error Message

# 403 Forbidden

#### Server or website configuration is blocking you from viewing this page

(please share the FULL error message you see, if applicable)

### Other Information

(other information and details relevant to your question)  
Hi, everyone! This is my domain from GoDaddy, I just renewed its SSL certificate last month, and since I’m hosting it through Infinity Free, I changed the nameservers from the default in my Godaddy domain page to the Infinity Free nameservers, the certificate was then renewed so I installed it, but then if I continued using the IF nameservers, every time I visit my website without typing the “www.”, it always routes me to a Godaddy advertisement page, but then when I completely typed my website url with the “www.” included, it loads my website. I was able to fix this 3 months ago and when I set my website up last January by reverting the nameservers back to the Godaddy default ones. But now, it no longer worked. My would no longer load, saying “[www.pimpleletta.com](http://www.pimpleletta.com)” unexpectedly closed the connection. So, I checked my previous topic here and followed the instruction to change the value of my A Record in my Godaddy DNS page to my website IP address found in my Infinity Free dashboard.

Here’s where I got the IP address to put in the A record:

 ![image](https://forum-cdn.infinityfree.net/original/3X/4/7/47b0082237cfaa9938ca2625492dfeb2ac302662.png)

My nameservers now are the Infinity Free nameservers.

I highly appreciate your response and help. Thank you in advance!

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [August 6, 2023, 12:56pm UTC](https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213/2 "2023-08-06T12:56:49Z")

</div>

Look at this:

> [@Redirected to InfinityFree 403 Forbidden page](https://forum.infinityfree.com/t/redirected-to-infinityfree-403-forbidden-page/58664/1):
>
> ## Your site blocks access from your IP address
> 
> With .htaccess rules, it’s possible to selectively block or allow visitors based on their IP address. But using these rules, it’s also possible to lock yourself out of your site.
> 
> To do so, open a file manager or FTP connection to your site, go to the website folder and open the file `.htaccess`.
> 
> If there are lines starting with `deny from` or `allow from` in the file, it means IP access control is configured on your site.
> 
> If you do not want to do any IP level restriction, you can simply remove all these lines from your file.
> 
> If there is a line `allow from all`, you should look for any lines with `deny from ....` that contain your IP address.
> 
> If there is a line `deny from all`, then you should add a line with `allow from ....` that contains your IP address.

Did you ever accidentally blocked anything?

Mention that both of the urls (with or without www) resolve, but both redirect me to 403.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [August 6, 2023, 8:41pm UTC](https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213/3 "2023-08-06T20:41:04Z")

</div>

I checked your account and it seems that the htdocs directory is missing. Please note that when you deleted the domain from your account and added it again last week, the directory your domain was linked to was changed from `htdocs` to `pimpleletta.com/htdocs`, but your files have not been moved to this new location.

Please create a new folder in your account with the name `pimpleletta.com`, and then move the htdocs directory into it. That should fix your website.

I don’t fully understand why this results in a 403 error, you’d normally see a 404 error in situations like this. But I think this may work anyways.

---

<div class="post-metadata">

**Author:** ![Pta\_55](https://forum.infinityfree.com/letter_avatar/pta_55/32/5_5575768a8748004e209b776fc1b2916d.png) [@Pta\_55](https://forum.infinityfree.com/u/Pta_55)\
**Post date:** [August 7, 2023, 2:58am UTC](https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213/4 "2023-08-07T02:58:40Z")

</div>

Hi, this is what’s inside the htaccess file:  
 ![image](https://forum-cdn.infinityfree.net/original/3X/d/5/d5c970ac29ae23f442350d8b02c5fa0e246e081b.png)

---

<div class="post-metadata">

**Author:** ![Pta\_55](https://forum.infinityfree.com/letter_avatar/pta_55/32/5_5575768a8748004e209b776fc1b2916d.png) [@Pta\_55](https://forum.infinityfree.com/u/Pta_55)\
**Post date:** [August 7, 2023, 3:03am UTC](https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213/5 "2023-08-07T03:03:03Z")

</div>

Thank you! I created the folder as what you’ve said and moved the htdocs folder to it, now my website loads and opens. Thank you! By the way, may I know how did you check my account?

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [August 7, 2023, 3:05am UTC](https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213/6 "2023-08-07T03:05:30Z")

</div>

He is the site admin, he runs this site, and of course he can check your account.

---

<div class="post-metadata">

**Author:** ![Pta\_55](https://forum.infinityfree.com/letter_avatar/pta_55/32/5_5575768a8748004e209b776fc1b2916d.png) [@Pta\_55](https://forum.infinityfree.com/u/Pta_55)\
**Post date:** [August 7, 2023, 3:18am UTC](https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213/7 "2023-08-07T03:18:24Z")

</div>

Oh! My bad! Thank you for pointing that out. I did not realize it shows “Owner of InfinityFree” in his reply until now. 😅

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [August 14, 2023, 3:19am UTC](https://forum.infinityfree.com/t/403-forbidden-error-after-ssl-certificate-renewal/80213/8 "2023-08-14T03:19:05Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
