Forum Moderators: phranque
[edited by: phranque at 10:18 pm (utc) on Jan 17, 2018]
[edit reason] Unlink URL for clarity [/edit]
RewriteCond %{REQUEST_URI} !\/\.well-known\/ RewriteRule ^.well-known/(.*)$ - [L] I'm guessing the first line will be RewriteEngine On?If you haven't already turned it on. You only need to do this once.
I'm guessing the first line will be RewriteEngine On?Someone hereabouts got brave and experimented. The line has to occur once in any htaccess file that uses mod_rewrite--but it doesn't matter if it comes first, last or in the middle. It may even occur twice if you have CMS boilerplate supplemented by your own rules. But in practice it makes most sense to put it immediately before your RewriteRule section, because that's where a human would expect to see it.
this line excludes that path from the redirect.I'm aware of that... however it may have been the cause of the key installer getting lost. I work with these all the time. Best to keep the location of well-known independent of any rewrites. As the OP just said, when he went back to using an old copy of htaccess *without* that line, the installer was able to do its job. There's absolutely no reason for that file path to be included in the redirect, with or without the exemption. There are no browsers that will request it.
One last question, just to clarify when using the file I actually use URL or URI in the lines?@vSkyeman - use the URI as exemplified.