how can i redirect two domain on the same server.. let say this domains  http://www.game.com -&gt; http://www.games.com http://game.com -&gt; http://www.games.com http://games.com -&gt; http://www.games.com (*this is not redirecting*)   all domain all should redirect to this domain   heres the current htaccess content  RewriteCond %{HTTP_HOST} ^game.com$ [OR] RewriteCond %{HTTP_HOST} ^www.game.com$ RewriteRule ^/?$ "http\:\/\/www\.games\.com\/" [R=301,L]  RewriteCond %{HTTP_HOST} ^games.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.game.com$ RewriteRule ^/?$ "http\:\/\/www\.games\.com\/" [R=301,L]
This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.
Comparing and contrasting, p-values, significance levels and type I error I was wondering if anybody could give a concise rundown as to the definitions and uses of p-values, significance level and type I error.  I understand that p-values are defined as "the probability of obtaining a test statistic at least as extreme as the one we actually observed", while a significance level is just an arbitrary cutoff value to gauge if the p-value is significant or not. Type I error is the error of rejected a null hypothesis that was true. However, I am unsure regarding the difference between significance level and the type I error, are they not the same concept?  For example, assume a very simple experiment where I flip a coin 1000 times and count the number of times it lands on 'heads'. My null hypothesis, H0, is that heads = 500 (unbiased coin). I then set my significance level at alpha = 0.05.  I flip the coin 1000 times and then I calculate the p-value, if the p-value is > 0.05 then I fail to reject the null hypothesis and if the p-value is &lt; 0.05 then I reject the null hypothesis.  Now if I did this experiment repeatedly, each time calculating the p-value and either rejecting or failing to reject the null hypothesis and keeping a count of how many I rejected/failed to reject, then I would end up rejecting 5% of null hypotheses which were in actuality true, is that correct? This is the definition of type I error. Therefore, the significance level in Fisher significance testing is essentially the type I error from Neyman-Pearson hypothesis testing if you performed repeated experiments.  Now as for p-values, if I had gotten a p-value of 0.06 from my last experiment and I did multiple experiments and counted all the ones that I got a p-value from 0 to 0.06, then would I also not have a 6% chance of rejecting a true null hypothesis? Primitive of holomorphic Function $\frac{1}{z}$ on an Annulus. Given an Annulus with $A(0,r,R)$ show by considering Cauchy's Theorem for primitives that there is no holomorphic function with $f'(z)=\dfrac{1}{z}$.   I am struggling to picture this since but it seems like there are issues because $f(z)=\log z$ isn't well defined in the same range as $\dfrac{1}{z}$.  Am I looking to show that $\int_Ag(z)dz = 0$ where $g(z) = \dfrac{1}{z}$? How to go with proving this : Let $R$ be a ring and let $I$ be an Ideal of $R$.  Prove that the factor ring $R/I$ is commutative iff $rs-sr \in I$ $\forall r$ and $s$ in $R$  any hint how to go with this... Has anyone successfully deleted the Windows Installer files successfully before? They are taking up 35.1% of my total hard drive space.  Which ones are needed and which ones can be purged?  In order to see this folder, I had to unhide system files by going to Windows Explorer > Organize (dropdown) > Folder and Search Options > view tab > uncheck ==> Hide protected operating system files (Recommended).  I used WinDirStat program to get these percentages. To see the image in full size, open it in a new tab.  I was told by someone that you should not delete these files, but then I found a utility--Windows Installer CleanUp Utility (very old version) that deleted these.  But it doesn't run on Windows 7.  If anyone has a later version that they found works, please let me know the path. I tried to find this question somewhere else on here, and found a couple that were similar to it -- but all the answers seemed pretty convoluted, and I think it was surprising to me because I just imagined that SQL would have a way easier way to do this.  Essentially, I'm using a GROUP BY to group two values on top of each other. The coding is simple and works well, where I get these results using WITH ROLLUP at the end:  Type    Person  Count Type A  Person 1    10 Type A  Person 2    91 Type A  Person 3    13 Type A  Person 4    10 Type A  Person 5    2 Type A  NULL        126 Type B  Person 6    16 Type B  Person 7    63 Type B  Person 8    15 Type B  Person 9    22 Type B  Person 10   16 Type B  Person 11   3 Type B  Person 12   20 Type B  Person 13   44 Type B  NULL        198 NULL    NULL        360   Is there an easy way to substitute something saying if "NULL" is in the "Person" column, then make NULL AS "Subtotal" and if "NULL" is in the "Type" column, NULL AS "Grand Total?"  And if that's weirdly complicated, I'd be totally fine with just calling all of them "Total."  Thanks! the root of $N$th transpose matrix For $n=3,$ $L$ matrix is as below:  $$ \left[\begin{matrix} 1&amp;0&amp;0\\ -1&amp;1&amp;0\\ -0.5&amp;-0.5&amp;1\\ \end{matrix}\right] $$  for $n=4$ we have:  $$ \left[\begin{matrix} 1&amp;0&amp;0&amp;0\\ -1&amp;1&amp;0&amp;0\\ -0.5&amp;-0.5&amp;1&amp;0\\ -1/3&amp;-1/3&amp;-1/3&amp;1 \end{matrix} \right] $$  and for $N$th we have: $$ \left[ \begin{matrix} 1&amp;0&amp;0&amp;0&amp;\cdots&amp;0&amp;0\\ -1&amp;1&amp;0&amp;0&amp;\cdots&amp;0&amp;0\\ -0.5&amp;-0.5&amp;1&amp;0&amp;\cdots&amp;0&amp;0\\ \vdots&amp;\vdots&amp;\vdots&amp;\vdots&amp; &amp; \vdots&amp;\vdots\\ -1/(N-2)&amp;-1/(N-2)&amp;-1/(N-2)&amp;-1/(N-2)&amp;\cdots&amp;1&amp;0\\ -1/(N-1)&amp;-1/(N-1)&amp;-1/(N-1)&amp;-1/(N-1)&amp;\cdots&amp;-1/(N-1)&amp;1 \end{matrix} \right] $$  How to get the roots (eigenvalues) of the $N$th order of the $L+L^T$ matrix? is there a specific logic between the roots of this matrix? Beamer, page/frame numbers, buttons and Appendix slides How to fix task manager memory column if it shows lies What is a Superblock, Inode, Dentry and a File? From the article  by M. Tim Jones, I read that Linux views all the file systems from the perspective of a common set of objects and these objects are superblock, inode, dentry and file. Even though the rest of the paragraph explains the above, I was not that comfortable with that explanation. Could somebody explain to me these terms? Evaluate:  $$\lim_{x\to{0}}\bigg(\frac{2}{x^3}.(\arcsin{x}-\arctan{x})\bigg)^{2/x^2}$$  I can just expand $\arcsin{x}$ and $\arctan{x}$ using their taylor expansions, but is there any other method? Suppose $m,n&gt;0$, $U$ an open subset of $\mathbb{R}^{m+n}$ and let $f: U \to \mathbb{R}^n$ be continuously differentiable.  Is it possible for $f$ to be injective?    My thinking is that continuous differentiability+injectivity suggests that this is sort of getting at a converse to the Inverse Function Theorem.  We know the Jacobian is not invertible at any point in $U$, and the question is asking if this implies that $f$ cannot be invertible in any neighborhood contained in $U$. I'm using +[NSUserDefaults standardUserDefaults] to store application settings. This consists of roughly a dozen string values. Is it possible to delete these values permanently instead of just setting them to a default value? How to prove that a limit does not exist? Let $x \in \mathbb{R}$ and let $\lfloor y\rfloor$ be the largest integer less than or equal to $x$. $$ f(x) = \frac{1}{x} - \left\lfloor\frac{1}{x}\right\rfloor$$ How does one prove that the $ \lim_{x\to 0} f(x)$ does not exist by using a Epsilon Delta proof? There is a hint given that you can use a proof by contradiction. A similar task for changing the desktop background, can be achieved using the following script:   FILE="/backgrounds/background.png" gsettings set org.gnome.desktop.background picture-uri "$FILE"   How would I achieve the same result, but with the user's avatar/profile picture? HTTP GET request in JavaScript? Are "w/o", "w/", "b/c" common abbreviations in the US? For which positive integer values of $n$ does $a|mn-b?$ I am taking a number theory class, and I was not able to solve this homework problem.   Let $a,$ $b,$ and $m$ be constant positive integers. For which positive integer values of $n$ does $a|mn-b?$   I tried this out for a couple of values, and the values of $n$ satisfying this expression seem to occur in a cycle.  (For example, let $m=2019,$ $a=20,$ $b=19.$ The values of $n$ that work are $1,21,41,61,....$) However, I am not able to show that this always happens. Help, Creating a test class for an invocable method (code coverage @ 0%) How to pack a sphere with cubes? I read a little bit about , but I imagine the problem changes drastically when trying to fill a sphere with unit cubes. For example, how many unit cubes could one fit into a sphere of radius five? Clearly the upper limit would be $\left \lfloor \frac{4}{3}\pi \cdot 5^3 \right \rfloor$, but I imagine there will be plenty more empty space than just a small fraction of a cube. I had to take ownership of the special folder C:\Program Files\WindowsApps to fix . The issue is now resolved, so I'd like to reset the permissions to the way they were before I took ownership of the folder.  I reverted NT SERVICE\TrustedInstaller to the owner and removed my account's permission entries:     But I still have full control of the folder and can browse the folder in Explorer without getting the usual warning that I would have to take ownership:     Is it possible to restore the default permissions of this folder?