I've been out of the website game for a while now and I can't figure out what I'm doing wrong. I'm more of a graphics person. >.< shouldn't I be able to type www.website.com instead of Https://www.website.com? I have a hankering it's some type of redirect but I don't know where to start. Any helpful comments would be appreciated. Thanks! Ian Monty asked 03 Oct '18, 01:49 fawwal |
In your control panel you need to explicitly add I create a dedicated application within the WebFaction control panel to handle all my redirects and nothing else. This should be a static/php application, and the only file it needs is a
I also usually have other redirects in this file as well, but I've omitted them for brevity. Then in your control panel, make this an http website, and add After that you just have your application set up like normal, whatever it may be, using https, and What the code above does:It first ignores any redirect rules for anything that begins with It then checks if the url supplied starts with www. or is http, and if so, will redirect the user to the Hope that all makes sense, if you're having any further issues I can try to help. answered 26 Oct '18, 14:59 bh-scott I should also mention that another benefit to doing redirects this way is that this same redirect application can be re-used for however many websites and domains you may have.
(26 Oct '18, 15:01)
bh-scott
Thank you for your time writing this detailed reply! This did work, although it took me a while to understand what I had to do. Thank you.
(19 Jan '19, 17:47)
fawwal
No problem, glad you got it to work.
(19 Jan '19, 18:33)
bh-scott
|
Welcome back. As per, https://docs.webfaction.com/user-guide/websites.html?highlight=secure#secure-sites-https "If you need your site to be available over both HTTP and HTTPS, then create two website records, one HTTP and the other HTTPS, and ensure that both sites are assigned to the same IP address." My guess is that you might not have a second site record setup for HTTP. answered 03 Oct '18, 02:09 NickR ♦♦ Thanks for the Reply Nick. I've got the Http:// and Https:// redirects working. I'm having trouble when I just type in www.website leaving out the http. It shows a Webfaction splash. How DO I correct this? If you navigate to any popular website and remove the http:// from the address bar it reverts to http?
(03 Oct '18, 02:26)
fawwal
|