What is the proper format for an htaccess redirect relating to https and subdomains I'm not sure if my syntax is correct here. I'm specifically looking to do this:   Redirect all traffic to the root domain (mydomain.com) to a www version (www.mydomain.com). Redirect all http traffic to https on specific subdomains (or root domain to https:/www)   So if someone goes to the root domain (any page) they will go to the  version of that page.  If they go to two specific subdomains (www and clients) using http, they'll be redirected to the https version (either . or . respectively).  If they go to any subdomain other than www or clients, then do not force https.  Here's what I came up with:  # FORCE ROOT TO WWW RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] # END FORCE ROOT TO WWW  # FORCE SSL RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(www|clients)\. [NC] RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] # END FORCE SSL   This doesn't seem optimal. Is there a better way?  Also, this is a WordPress site and there are other rules in htaccess. Should this go at the very top of the htaccess file.  Thanks much.
Forcing SSL and www in .htaccess I'm looking for a way to force SSL and www.  I've been able to force both separately but together I keep running into redirection issues. The following code works when handling a URL in this format: http://example.com and properly redirects to https://www.example.com but when the incoming URL is https://example.com it will not forward to https://www.example.com - Any suggestions?  EDIT: it should also send http://www.example.com to https://www.example.com.  RewriteCond %{REMOTE_ADDR} !127\.0\.0\.0 RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} !^www.example\.com$ RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
I need to create a metadata-table for all files in a File Geodatabase.   Is it possible to automatically be updated with new filenames, and possibly even metadata (as created in the ArcGIS metadata editor)? How can I blow out the background when shooting down for clothing on the ground? I've created a simple mesh consisting of a cube that has been modelled out into a corner by extrusion:    I'm now trying to sculpt detail onto it in sculpt mode using dynotopo, however I'm getting different results on different sides of the mesh.  The bottom of the mesh (which was the original cube that I extruded from) sculpts nice and smoothly as expected, however the other side is jagged and distorted which I can't sculpt as nicely. Why is this? The original faces appear to be the same. Is Pauli-repulsion a "force" that is completely separate from the 4 fundamental forces? Why are hand-built wheels considered to be better than machine-built wheels? Why are hand-built wheels considered to be better than machine-built wheels? I would think that a machine-built wheel would be better and cheaper, since machines generally do a more precise job than humans. Do I need to upgrade RAM from 4GB to 8GB for Android development? I'm an android developer and have laptop with 4GB RAM. When I compile my project the RAM is used at 100%.    If I add more RAM will it solve the problem? I have two shapefiles, Point and Polyline. I'm trying to populate my polyline layer with the point data ID (systemID) where the lines start to where they end; eg. create two columns (from and to). The lines already have flow direction assigned to them. I am using ArcHydro tools but Arcpy is also fine.  In ArcHydro I have tried using Attribute Tools > Generate From/To Nodes for lines but it creates values for To and From that are not from my point data. My other alternative was using Feature to Vertices and joining the result to my point data table to get the systemID. But then I would have to update the polyline layer as well. I am sure there is a easier way of doing it.  Note: not all the lines have points at the vertices, blank values are fine for them. What are our policies regarding self-harm and suicide? What should I do as a Moderator when I encounter situations regarding self-harm and suicide? Expected time to roll all 1 through 6 on a die What's the difference between the snap folder in /home/&lt;UserName&gt; and the snap folder in root (/)?  I'm trying to get a grasp on where programs and their files are stored when you install them.  The first and only program I have installed on my machine is Spotify.    I noticed that there were two spotify folders within two separate snap folders.  One in the home directory and one in the root directory.    Questions   Why are there two snap folders? Why are there two spotify folders? Are they different in any way (the snap and spotify folders)?     NOTE: I installed Spotify via the Ubuntu Software application, not via the Terminal. How can I find the smallest set of groups of $n$ elements such that every element is in the same group as every other at least once? Background: I'm working on  for , and I've run into a problem with how I'm creating the individual matchups (groups of 4 entries).  Currently, I'm simply generating all combinations of 4 elements (in the combinatoric sense) of entries, but that gets really big really quickly:  $$x \choose 4$$    (from )  Therefore, my question is: How can I choose subsets (of length $n$) of a set such that each element of that set appears in the same subset as every other element at least once, while maintaining a minimal amount of subsets?  I can figure this out for $n = 2$, since the solution is quite intuitive: simply combine the first element with every other element, combine the second element with every other element that comes after it, etc. For a set of length $L$, this yields:  $$\sum_{x=1}^{L-1}(L - x)$$    (from )  which is much smaller and more manageable.  However, I still have not been able to figure out: How can I generalize this to any $n$? Windows 10 won't accept Firefox as the default browser Beamer to HTML using make4ht \documentclass{beamer} \usetheme{Madrid} \begin{document} \begin{frame} aaa \end{frame} \begin{frame} bbb \end{frame} \end{document}   The above tex file is to be converted into html. I am using the following command   make4ht filename.tex   However it throws error. The basic question is "Is it possible to convert beamer presentation to html using make4ht?" What's the difference between scaling text via transform and changing font size? Is there a difference between using Transform commands to scale text and altering the size of the font via Character panels?   I'm working in Photoshop CC Why the principal value of complex number argument is taken within $(-\pi,\pi]?$ Why the principal value of complex number argument is taken within $(-\pi,\pi]?$ What is the harm in considering similar other intervals like $[0,2\pi)$ for the purpose? Use (or non-use) of articles before abstract nouns what is the total number of distinct arrangements of $n$ oranges and $n$ apples around a round table? I have no idea how to go about. When the loop is the figure shown below will be rotated in clockwise direction the the slip ring connected to the red segment of the loop will give us the positive voltage and the slip ring connected to the black segment of the loop will give us negative voltage according to the Flemings right hand rule.  What if the loop is rotated in counter clockwise direction ? Will the slip rings provide us the same polarities which they were giving when the loop was moving clockwise ?  Plus  The voltage from the loop is given by the equation.  V(t) = Vmaximum * sin (theta)  Where theta is the positive angle the red segment makes in the clockwise direction or in counter clockwise direction from this position ? What is the "wheel" user in OS X? Cann I use a 19.5V 4.62A laptop charger for 19V 4.74A laptop?