Website redirect (.htaccess)
Redirect all requests to subdirectory except a few ip addresses
Which is correct: I'll be moving next month or I'll be shifting next month? New Div - "Hiding questions because of your Ignored Tags preferences for tags" I think this message/div/box was just added today since I've never noticed it before, it is very noticeable.    I'm already aware that I'm hiding questions because I selected to hide them in my preferences. Isn't this a bit redundant? Now I have to scroll down more to be able to click to the next page. Plus see that same message dozens upon dozens of times a day.    Here are my ignored tags. So I'm going to have to see the same message on any question page that I'm on. Even though I already know questions are being hidden. I'm not understanding the point to this new div/box notification.  Does anyone find this new div/box useful? Do you find it redundant?       EDIT:   Also, this isn't just for StackOverflow.   I only have 2 ignored tags for CodeReview currently. And I have it set for only 15 questions per page. But still, on every page I click to it shows! How to get RGB values from UIColor? I try to download a file with wget and curl and it is rejected with a 403 error (forbidden).  I can view the file using the web browser on the same machine.  I try again with my browser's user agent, obtained by . I do this:  wget -U 'Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0' http://...   and  curl -A 'Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0' http://...   but it is still forbidden. What other reasons might there be for the 403, and what ways can I alter the wget and curl commands to overcome them?  (this is not about being able to get the file - I know I can just save it from my browser; it's about understanding why the command-line tools work differently)  update  Thanks to all the excellent answers given to this question. The specific problem I had encountered was that the server was checking the referrer. By adding this to the command-line I could get the file using curl and wget.  The server that checked the referrer bounced through a 302 to another location that performed no checks at all, so a curl or wget of that site worked cleanly.  If anyone is interested, this came about because I was reading  page to learn about embedded CSS and was trying to look at the site's css for an example. The actual URL I was getting trouble with was  and the curl I ended up with is  curl -L -H 'Referer: http://css-tricks.com/forums/topic/font-face-in-base64-is-cross-browser-compatible/' http://cloud.typography.com/610186/691184/css/fonts.css   and the wget is   wget --referer='http://css-tricks.com/forums/topic/font-face-in-base64-is-cross-browser-compatible/' http://cloud.typography.com/610186/691184/css/fonts.css   Very interesting. How to export SVG without lines, polylines and polygons? Let $F$ be a finite field. How do I prove that the order of $F$ is always of order $p^n$ where $p$ is prime? How would you handle different aspect ratios in a 2d platformer? Why upload to academic preprint sites like arXiv? The recent question  made me realize that I don't have any understanding of why one would upload to a preprint site.  (I don't work in a field where they seem to be common.)  Why would one be concerned about getting a manuscript on arXiv, if it's already under review with a journal?   Is it because of the long publishing timeline of journals?  (That could explain why computer science &mdash; which publishes much more in conferences &mdash; doesn't seem to do much with them.) I have an Ubuntu server and I've installed MySQL.  How would I use my two physical static IP addresses in my.cnf bind-address -- can I add two IP addresses? Prove $\sqrt{2}$ is between $\dfrac{a}{b}$ and $\dfrac{a+2b}{a+b}$ Let $a$ and $b$ be positive integers. Show that $\sqrt{2}$ always lies between $\dfrac{a}{b}$ and $\dfrac{a+2b}{a+b}$.  Please give the easy solution as possible. pain of browser back button Where can I find PSD file or tutorial to create the effect of frame with shadow (see red arrow in image) When installing Wine on 64-bit Ubuntu 12.04, both 64-bit support and 32-bit support get installed. If I run wine foo.exe where foo.exe is a 64-bit-aware installer, it thinks it's on 64-bit Windows. This would be fine if this mode didn't fail, but in my case, it does (yet the Wine database suggests the app I'm trying to install should work, presumably as a 32-bit app).  How do I tell Wine (and Winetricks) to use Wine in 32-bit-only mode? WPF Get Element(s) under mouse Where will changes and fixes to guides and manuals for 5e be found? I'm interested in a grappler build, among others, and don't know where to look to see if the last bullet for the grappler feat has been changed. The grappler example aside, it should be useful to know for future fixes. How can I escape white space in a bash loop list? I have a bash shell script that loops through all child directories (but not files) of a certain directory.  The problem is that some of the directory names contain spaces.    Here are the contents of my test directory:  $ls -F test Baltimore/  Cherry Hill/  Edison/  New York City/  Philadelphia/  cities.txt   And the code that loops through the directories:  for f in `find test/* -type d`; do   echo $f done   Here's the output:   test/Baltimore test/Cherry Hill test/Edison  test/New York City test/Philadelphia   Cherry Hill and New York City are treated as 2 or 3 separate entries.  I tried quoting the filenames, like so:  for f in `find test/* -type d | sed -e 's/^/\"/' | sed -e 's/$/\"/'`; do   echo $f done   but to no avail.  There's got to be a simple way to do this.    The answers below are great.  But to make this more complicated - I don't always want to use the directories listed in my test directory.  Sometimes I want to pass in the directory names as command-line parameters instead.  I took Charles' suggestion of setting the IFS and came up with the following:  dirlist="${@}" (   [[ -z "$dirlist" ]] &amp;&amp; dirlist=`find test -mindepth 1 -type d` &amp;&amp; IFS=$'\n'   for d in $dirlist; do     echo $d   done )   and this works just fine unless there are spaces in the command line arguments (even if those arguments are quoted).  For example, calling the script like this: test.sh "Cherry Hill" "New York City" produces the following output:   Cherry Hill New York City How do I check if an element is hidden in jQuery? Is there a way to start over?  No spoilers here, but after a certain point in the game I wish I had done something different, so I'd like to perhaps start over and make some different decisions based on my current game play experience. consider positive numbers $a_1,a_2,a_3,\ldots,a_n$ and $b_1,b_2,\ldots,b_n$. does the following in-equality holds and if it does then how to prove it  $\left[(a_1+b_1)(a_2+b_2)\cdots(a_n+b_n)\right]^{1/n}\ge \left(a_1a_2\cdots a_n\right)^{1/n}+\left(b_1b_2\cdots b_n\right)^{1/n}$ Let $S$ be the set of $3 \times 3$ matrices $\rm A$ with integer entries such that $$\rm AA^{\top} = I_3$$ What is $|S|$ (cardinality of $S$)?   The answer is supposed to be 48. Here is my proof and I wish to know if it is correct.  So, I am going to exploit the fact that the matrix A in a set will be orthognal, so if the matrix is of the form \begin{bmatrix}         a_{11} &amp; a_{12} &amp; a_{13} \\         a_{21} &amp; a_{22} &amp; a_{23} \\         a_{31} &amp; a_{32} &amp; a_{33} \\         \end{bmatrix}  Then each column and row will have exactly one non-zero element which will be +1 or -1. Thus, I have split possibilities for the first column into three cases and counted the possibilities in each case as follows :- $$a_{11} \neq 0$$ or $$ a_{21} \neq 0$$ or $$ a_{31} \neq 0$$  In case 1), we obviously have two possibilities(+1 or -1) so we consider the one where the entry is +1. Now, notice that the moment we choose the next non-zero entry, all the places for non-zero entries will be decided because of the rule 'each column and row will have exactly one non-zero element'. Meaning, if b and c are remaining two non-zero entries, we only have two possibilities left  \begin{bmatrix}         1 &amp; 0 &amp; 0 \\         0 &amp; b &amp; 0 \\         0 &amp; 0 &amp; c \\         \end{bmatrix}  or  \begin{bmatrix}         1 &amp; 0 &amp; 0 \\         0 &amp; 0 &amp; c \\         0 &amp; b &amp; 0 \\         \end{bmatrix}  Using the fact that b and c are simply $$\pm1$$  In each of the above matrices, we get 4 possibilities for each of the matricies. Thus, 8 possibilities in totality. Basically, we are getting 8 possibilities on the assumption that  $$a_{11} = 1$$  Thus, we get 16 possibilities on the case that $$a_{11} \neq 0$$  Following, the second and third cases analogously, we get a total of 16 possibilities in each of them and 48 possibilities in total.    Source :- Tata Institute of Fundamental Research Graduate School Admissions 2016