This is the first time I am "playing" with .htaccess and the only reason I am doing so is so I can force my website to load the secure site. http --> https. From what I've read .htacess is the way to do that so I created an .htaccess file in notepad (eliminated the .txt) and uploaded to the root directory of my website. I used the following code which I found and believed would force my site to load the secure version of the website: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://mywebsite.com/$1 [R,L] After uploading the .htaccess file I attempt to visit my website and get the following error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.33 Server at mywebsite.com Port 80 Any help is much appreciated!
Tropp I'm very much a novice at this. I'm not super code savy so I build my sites in dreamweaver. I have my site uploaded and I have an SSL installed. In reading about htaccess I thought all I needed to do was open notepad, pop in: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://mywebsite.com/$1 [R,L] Save it as .htaccess and upload it to the root and it would force my site over to https so it would be secure...
Everywhere I've looked seems to tell me that is the correct code so I'm a bit lost. My host is GoDaddy and I have read of some people having issues w/ GoDaddy & htaccess files, but I'm not sure what to do. Is there anything else I need to include in the file?
Try editing the htacces file directly on the server if you have cPanel. I kept having errors too and apparantly it's cause of spaces added by editors like dreamweaver etc. Try it out Hope that helps.
Just a quick follow up. I figured out my problem...sort of. GoDaddy provides a tool in their control panel that allows you to do what I wanted to do. I just wish I would have found it before I wasted all the hours trying to figure out why my code wouldn't work.