My web host migrated to new servers. Unfortunately my .htaccess file did not make the transistion and was also not contained in my fairly regular site backups.
As i recall i need commands to allow ecowitt to put the ecco_lcl.arr by http instead of https. I have been googling and reading about htaccess files, but for the life of me cannot figure out what i had or need to do to restore the contents of that file.
Help appreciated.
Regards,
Jim
This htaccess below assumes that all http trafic will be redirected except trafic to pwsWD/ecowitt/
But your provider can have set numerous http → https redirects.
Normally this is question for the support person at the company you paid to host your website.
So if the below part does not work, ask them.
Succes,
Wim
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/pwsWD/ecowitt/
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Thank you Wim,
The host is still having other migration problems. Their file manager works, but command line FTP cannot find the file structure. pwsWD doesn’t really need it, but WD does. I spent about two hours in their chat and they see the problem but have not figured out how to fix it yet.
I could switch over to clientraw.txt, but FTP is broke.
Thanks again,
Jim
That sounds like they’re having problems with some pretty basic stuff! Many years ago I used a hosting company that I eventually decided was run by a 12 year old who didn’t know anything about running Linux servers. It was cheap but in hindsight it was too cheap and it cost me lots of extra time to migrate to somewhere that was better supported.
Yeah, not real happy though. Customer (no) support could not answer questions about the right commands and nothing i tried worked. I made SSL optional and it started working. FTP still doesn’t work, but with Ecowitt upload going its ok for the moment. FTP i can log in and then it can’t find my file system. I think the FTP server has not been updated to have my login point me to my file system. I must have spent 5 hours in the customer service chat. Very annoying. But its working.
Chris, i am paid through sometime next year. I may well consider moving. RFPs accepted in person at the Chattahoochee National Forest. 
Jim
1 Like
I figured out FTP. So now my Carter Lake site is working again. Instead of ‘home’ being my public_html directory it was coming in on my username and uploads have to go to {username}/domains/altlaw.com/public_html.
I have made it quite clear they told me NOTHING would change. They did the work on a Friday night and then had no one on hand who understood what they did and how to fix problems over the weekend. Not exactly the 24/7 support they advertise.
Oh well. It works.
In the words of my friend bitsostring, it’s supposed to be fun.
OTOH i have noticed a serious uptick in users mostly from China. Interesting. Over a hundred on Thursday. I wonder if they are planning a serious visit to the Chattahoochee National Forest.
That will be one of two things. Either the Baidu search engine crawling your site. In the past the spider hasn’t been well behaved…it just tries to download everything within as short a time as possible which gives you lots of hits but can be a performance issue. Or, its the Chinese Cyber Army looking to see if your site is hackable and therefore a useful target for more work.