# Oops! A Website Error Has Occurred

**URL:** <https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106>\
**Category:** Hosting Support\
**Created:** [October 6, 2026, 1:59pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106 "2026-10-06T13:59:31Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon\_denman](https://forum.infinityfree.com/letter_avatar/simon_denman/32/6_449c533f586939b6e5f246632a46421f.png) [@simon\_denman](https://forum.infinityfree.com/u/simon_denman)\
**Post date:** [October 6, 2026, 1:59pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/1 "2026-10-06T13:59:31Z")

</div>

### Website URL

[http://staging.simondenman.net/](http://staging.simondenman.net/)

### Error Message

Something Went Wrong!

Our apologies, but the website has encountered an error and cannot display this page at the moment.

The issue is likely due to a code error within the .htaccess file, which controls important server configurations. This error is not related to any PHP files or other website code.  
How to Debug the .htaccess Error:

If you have access to the website’s files, please follow these steps to identify and resolve the problem:

```
Access Your .htaccess File: Use an FTP client or your hosting provider's file manager to locate the .htaccess file in the root directory of your website (or the specific directory where the error is occurring).
Check for Recent Changes: If you have recently edited the .htaccess file, the error is likely within your latest modifications.
Comment Out Recent Lines: To isolate the error, try commenting out the lines you've recently added or modified. You can comment out a line by adding a # symbol at the beginning of the line. For example:
# RewriteEngine On
# RewriteRule ^old-page\.html$ new-page.html [L]
Test After Each Change: After commenting out a section, save the .htaccess file and try to reload the webpage that was showing the error. If the error disappears, the problem lies within the commented-out section.
Carefully Review the Code: Examine the syntax and logic of the code within your .htaccess file. Look for typos, missing characters (like brackets or quotes), or incorrect directives. Refer to the Apache .htaccess documentation for correct syntax.
Revert to a Previous Version: If you have a backup of your .htaccess file from a time before the error occurred, try reverting to that version.

```

Once the problematic code in the .htaccess file is corrected or removed, the website should return to normal.

### Other Information

I am getting this error even after commenting out or removing all lines in the .htaccess file until it is empty.

The website is fine if I delete the .htaccess file, however I need the rewrite rules for https.

---

<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:** [October 6, 2026, 1:59pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/2 "2026-10-06T13:59:31Z")

</div>

Welcome to the InfinityFree community forum! Good to have you here.

- Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
- Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
- AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
- Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 6, 2026, 2:46pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/3 "2026-10-06T14:46:11Z")

</div>

No issue

 ![image](https://forum-cdn.infinityfree.net/original/3X/5/4/54fec04d181c56d617b679a79b9843c83c4df9c0.jpeg)

---

<div class="post-metadata">

**Author:** ![simon\_denman](https://forum.infinityfree.com/letter_avatar/simon_denman/32/6_449c533f586939b6e5f246632a46421f.png) [@simon\_denman](https://forum.infinityfree.com/u/simon_denman)\
**Post date:** [October 6, 2026, 3:01pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/4 "2026-10-06T15:01:28Z")

</div>

Sorry. I just deleted the .htaccess to stage some changes. I have now returned the (empty) .htaccess file for purposes of reproducing!

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [October 6, 2026, 5:12pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/5 "2026-10-06T17:12:02Z")

</div>

If it’s an empty .htaccess file, you can just remove it out that fixes the problem

---

<div class="post-metadata">

**Author:** ![simon\_denman](https://forum.infinityfree.com/letter_avatar/simon_denman/32/6_449c533f586939b6e5f246632a46421f.png) [@simon\_denman](https://forum.infinityfree.com/u/simon_denman)\
**Post date:** [October 6, 2026, 6:38pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/6 "2026-10-06T18:38:30Z")

</div>

The file contained Rewrite rules for https and is needed. This file previously worked, however presumably due to a change of policy with the hosting, the file no longer works. I simply put up an empty file after having commented out all of the lines to eliminate any possible syntax errors.

---

<div class="post-metadata">

**Author:** ![simon\_denman](https://forum.infinityfree.com/letter_avatar/simon_denman/32/6_449c533f586939b6e5f246632a46421f.png) [@simon\_denman](https://forum.infinityfree.com/u/simon_denman)\
**Post date:** [October 6, 2026, 6:40pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/7 "2026-10-06T18:40:29Z")

</div>

The very presence of the .htaccess file seems to trigger the error but the documentation seems to suggest that it can be used.

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [October 6, 2026, 7:29pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/8 "2026-10-06T19:29:48Z")

</div>

That error usually means that there’s a blocked rule in the .htaccess file.

For example an `option` function

If you’re trying to remove the i=1 that might trigger it too. I’m not sure on that one

---

<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:** [October 7, 2026, 8:43am UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/9 "2026-10-07T08:43:57Z")

</div>

An empty .htaccess file should have the same effect as not having a .htaccess file, which is that nothing happens.

However, your .htaccess file is not empty. It contains a single character and a newline.

I don’t know what the character is and pasting it here didn’t work, but the file manger shows it quite clearly.

And clearly, the server doesn’t like that character either. It’s causing the parsing of your .htaccess file to fail, which is causing the error you see.

An actually empty .htaccess file shouldn’t do this, and neither should valid .htaccess file.

If you’re still having trouble making your desired .htaccess rules work, please share them and we can have a look.

---

<div class="post-metadata">

**Author:** ![simon\_denman](https://forum.infinityfree.com/letter_avatar/simon_denman/32/6_449c533f586939b6e5f246632a46421f.png) [@simon\_denman](https://forum.infinityfree.com/u/simon_denman)\
**Post date:** [October 7, 2026, 10:22am UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/10 "2026-10-07T10:22:09Z")

</div>

Thanks for looking into this for me. I have readded the desired content which was copied verbatim from an [iFastNet](https://www.infinityfree.com/go/ifastnet) article from last year. The code is

RewriteEngine On  
RewriteCond %{ENV:HTTPS} !on  
RewriteRule ^(.\*)$ https://%{HTTP\_HOST}%{REQUEST\_URI} [L,R=301]

each line terminated with LF character.

---

<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:** [October 8, 2026, 10:28am UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/11 "2026-10-08T10:28:22Z")

</div>

The rules you shared look fine to me, but the parsing problem seems to be the same unprintable character as what caused the issue for the “empty” file. You can see it here at the start of the first line:

 ![image](https://forum-cdn.infinityfree.net/original/3X/b/8/b8848ea8adfd753df0d26ed4d2560b4d6846a823.png)

I don’t know what it is and I don’t know why it’s there, but I do know that it’s confusing the server just as much as it’s confusing me.

---

<div class="post-metadata">

**Author:** ![simon\_denman](https://forum.infinityfree.com/letter_avatar/simon_denman/32/6_449c533f586939b6e5f246632a46421f.png) [@simon\_denman](https://forum.infinityfree.com/u/simon_denman)\
**Post date:** [October 8, 2026, 4:10pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/12 "2026-10-08T16:10:22Z")

</div>

Well done for spotting that. It simply wasn’t showing up in the editor. I managed to delete it another editor even though it was invisible there as well!

Thanks for your help!

---

<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:** [October 15, 2026, 4:10pm UTC](https://forum.infinityfree.com/t/oops-a-website-error-has-occurred/121106/13 "2026-10-15T16:10:38Z")

</div>

Closed on October 15, 2026, 4:10pm UTC

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