MyBB Community Forums

Full Version: Force Https
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Alright basically what the title says:

when someone types aeythex.com or www.aeythex.com, how can I force them to go to https://www.aeythex.com




I tried Googling the answer, however it does not work.
Alright thanks, but how do I know which one I am using?

Apache or nginx
I got an error:

Internal Server Error

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

Please contact the server administrator at [email protected] 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.

Apache Server at aeythex.com Port 80

This is my .htaccess


RewriteEngine on
RewriteCond %{HTTP_HOST} ^gamersanctuary\.xyz$ [OR]
RewriteCond %{HTTP_HOST} ^www\.gamersanctuary\.xyz$
RewriteRule ^/?$ "http\:\/\/aeythex\.com" [R=301,L]



RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I have another error (this one was generated when I typed "www.aeythex.com":

Internal Server Error

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

Please contact the server administrator at [email protected] 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.

Apache Server at www.aeythex.com Port 443




The 1st error was generated when I typed "aeythex.com"
Seems like the Docs page is not displaying lines correctly - try separating those statements:
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Also, change
RewriteRule ^/?$ "http\:\/\/aeythex\.com" [R=301,L]
to
RewriteRule ^/?$ "https\:\/\/aeythex\.com" [R=301,L]
That got it to work, thanks!