Issue with .htaccess

Hi there,

I have been trying to access my index page (which is located in htdocs/index.html) but I am having no luck whatsoever.

I have “DirectoryIndex index.html” add into my .htaccess found in /htdocs but this has changed nothing.

Any help would be appreciated.


Error Message

typing “

" This site can’t provide a secure connection
www website com sent an invalid response.

  • [Try running Windows Network Diagnostics](javascript:diagnoseErrors()).


redirects me to infinityfree/404/

###Error message
Another Error Message

500 Internal Server Error

Oops, something broke when loading the page you requested! This is usually caused by bad .htaccess code or an error in your PHP code. Learn More.

Current .htaccess file in /htdocs

DirectoryIndex index.html
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteBase /htdocs
RewriteRule ^(.*)$ index.html [QSA,L]

I get a HTTP 500 error. You don’t need an .htaccess rule to show the document, so try deleting that .htaccess file and clearing your cache.


That worked, thank you!


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