Jump to content

[Solved] Getting error while opening my domain


devesh

Recommended Posts

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@devesh.heliohost.org to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

--------------------------------------------------------------------------------

 

I tried to install free SSL certificate and getting this error message.

I removed SSL Certificate but still getting the same error while opening my subdomain i.e. devesh.heliohost.org

 

 
 
 

 

Link to comment
Share on other sites

Your website is on Tommy. You don't need to manually install SSL certificate since AutoSSL will do that for you.

Your website works now (with SSL). https://devesh.heliohost.org

Note that it won't redirect you to HTTPS if you try to access it from HTTP. You need to add some code to your .htaccess file in order to achieve that.

EDIT: The SSL stopped working. Most likely because he removed it.

Link to comment
Share on other sites

Note that it won't redirect you to HTTPS if you try to access it from HTTP. You need to add some code to your .htaccess file in order to achieve that.

And here goes the code:

 

(Assuming you have existing code in .htaccess file)

 

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

 

And if you don't have (that is you are creating a new file) then:

 

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L]

</IfModule>

Link to comment
Share on other sites

@sohamb03: Doing that will break AutoSSL because it won't be able to renew when the cert expires. It either needs an exception added for .well-known, or he add a redirect in index.php instead of using .htaccess.

Link to comment
Share on other sites

Oh I see! Then this might help:

 

For HTML:

 

(Add a meta tag)

 

< meta http-equiv="Refresh" content="0;URL=https://www.example.com" />

 

For PHP:

 

< ?php function redirectTohttps() { if($_SERVER['HTTPS']!=”on”) { $redirect= “https://”.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];header(“Location:$redirect”); } } ?>

Link to comment
Share on other sites

That meta tag will cause an infinite loop.

 

The PHP method is what I use. :) It's a nice choice because it lets you still access other files on the server over plain http if necessary without adding a bunch of exceptions for them, but the average joe visiting your site will still be given an https connection.

Link to comment
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.

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.

×
×
  • Create New...