Firstly I'm not sure whether I'm asking at the right place or not (either here or stackoverflow). Sorry, if I'm not.  Before that:  My site runs on apache and developed using PHP.  What I'm trying to do is:   My client can generate a registration page for its customers. The default generated registration page URL is something like www.mydomain.com/test.php?clientid=2 But the url is long and ugly, so I created another option for the client to generate a prettier looking url, which starts with a shorter domain (eg: like.my) and a customizable 'path' after that. So the resulting pretty url my client want is like http://like.my/page. So there is a simple way to redirect the traffic from http://like.my/page to http://www.mydomain.com/test.php?clientid=2? Btw I have thousands of clients and each of them would have different pretty url pointing to different other pages.
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.
Storing the original document class page layout with geometry How do you choose Spells Known when creating a new character above 1st level? What is "all" in isset($wp_filter['all']) I'm a newbie in WordPress. I'm trying to understand how it generates the XHTML pages. I guess it's the function of do_action( 'hook-name' ) , but I'm stuck with the understanding of the instruction isset( $wp_filter['all] ) when reading the function do_action because I don't understand what is the meaning of the word all.  Is it a PHP feature or a WordPress one? Punctuation in an indirect quotation Stars and pins are retained when chat messages are moved! How to install h.264 decoder? I tried playing videos in movie player but only the audio could be heard. I tried playing the video with dragon player but here also only the audio could be heard.  A message box appeared showing the following message:     Python (v2.7) requires to install plugins to play media files of the following type: H.264 decoder   I tried installing the plugin but it couldn't be installed. It isn't available in the software center too. How can I get this plugin? How to factor intricate polynomial $ ab^3 - a^3b + a^3c -ac^3 +bc^3 - b^3c $ I would like to know how to factor the following polynomial.  $$ ab^3 - a^3b + a^3c -ac^3 +bc^3 - b^3c $$ What is the method I should use to factor it? If anyone could help.. Thanks in advance. QGIS 2.0 - can't select items in Print Composer Calculate a determinant with pattern macOS Mojave won't install updates past 10.14.1 due to requirement for APFS formatting I have a MBP 2012 I upgraded from High Sierra to Mojave after it came out as GA. I don't recall if I was asked about upgrading to APFS when Id id that, but at this time the main volume is Mac OS Extended (Journaled).  My current About This Mac...version is Mojave 10.14.1 (18B75). Now, when updates are advertised from the App Store, I'm unable to upgrade because 10.14.3 is required.  No OS updates show in the App Store, and when I searched for the updaters (10.14.2 Combo, etc), I can't install because the installer reports "macOS 10.14.2 Update can't be installed on this disk. This Mac can only install macOS on APFS-formatted drives."  I tried the search results recommending to boot in Recovery Mode and use Disk Utility, but APFS is not available as a type.  I have good backups and I can reformat the boot volume if I need to, but I have not done this before. Should I get a 10.14.3 installer to do this and boot from an external drive? The only guies and message boards I've found just keep saying to install 10.14.3 (I can't) or convert the disk in Recovery Mode (APFS is not available as an option.)  Any known-good ways to get my 10.14.1 upgraded so I can keep getting App Store updates? Prove that $(n+1)^{n-1}<n^n$ How would one prove that  $$(n+1)^{n-1}&lt;n^n \ \forall n&gt;1$$  I have tried several methods such as induction. I am trying to get an Epson WF-2760 scanner that is network-connected working. I'm using Ubuntu 16.04.2 64-bit and the printer works a treat. I have installed the Epson drivers from their site, including the plugins. I have edited /etc/sane.d/dll.conf to enable epson, epson2, and epsonds. I have edited each of the respective .conf files to include the network address of the device (IPV4: 192.168.128.11).   The scanner is not detected in any software that I have tried (including Image Scan and Simple Scan).  Any help is appreciated! Install apt package in ubuntu 12.04 I have mistakenly removed the default package APT from my system .  When I run command locate apt-get, I get below output:  /home/jeet/apt-get /home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/cmdline/apt-get.cc /home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/doc/apt-get.8.xml /home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/doc/de/apt-get.de.8 /home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/doc/fr/apt-get.fr.8 /home/jeet/Desktop/apt/apt-0.7.25.3ubuntu9.13/doc/ja/apt-get.ja.8 /home/jeet/Downloads/apt-get /home/jeet/Downloads/apt-get.8.gz /usr/share/bash-completion/completions/apt-get /usr/share/bash-completion/completions/slapt-get   If I run ls | grep apt-get, then I won't get any output.  Can anybody please advice how to recover apt package or install it from start? Is every complex (smooth) manifold a scheme? The question in the title doesn't quite make sense. I was always wondering if the scheme is the generalization of manifold. The precise statement should be like following:  If $X$ is a complex (smooth)manifold, is there a scheme $Y$ over $\mathbb{C}$ such that the corresponding analytic space $Y^{an}$ isomorphic to $X$?  I guess if $X$ is projective, then this is Chow's theorem. And I doubt the question has an affirmative answer if $X$ is non-compact (I guess that $X: y-e^x=0$ in $\mathbb{C}^2$ might be an example, but I do not know how to show this).  Edit 1:  There are also example (as @hunter pointed out) of a complex torus but not an abelian variety shows that a compact manifold might not be a variety, however, is it possible to be a scheme ?(according to Hartshorne, the category of varieties is a subcategory of quasi-projective, integral, separated scheme. But could there be some non-quasiprojective scheme($Y$ has to be integral, separated in our case according to GAGA, I guess) )?  Edit 2: Another question I think of is: is (Artin) Stack a generalization of manifold? I really want to know if manifold could be think of some subcategory of some category of with "algebraic objects". What is the importance of eigenvalues/eigenvectors? Are there any hash outputs not produced by the MD5 hash function? I need to use it as a placeholder for an empty hash while comparing two hashes. Is there a way to use Dvorak keyboard layout, but with command keys mapped to qwerty? Etiquette on sending a thank you e-mail to respondents who gave me helpful information Subset of a countable set is itself countable How is it proved that if $$A \subset B\ \text{with}\ B\ \text{countable} $$ then $A$ is either countable, finite, or empty? I think the proof involves a $1-1$ correspondence between $\mathbb{N}$ and $A$ but other than that I do not know how to proceed.  EDIT: I have checked the solution and it advises me to proceed as follows. " As a start to a definition of $$g: \mathbb{N} \rightarrow A$$ set $$g(1)=f(n_1) $$ Then show how to inductively continue this process to produce a $1-1$ function $g$ from $\mathbb{N}$ onto $A$."  So the proof according to my book involves induction. $|a_{n+1}-a_n| \leq \frac{1}{2} |a_{n}-a_{n-1}|$. I'm trying to show that $(a_n)$ is convergent by showing that $(a_n)$ is Cauchy.  let $|a_2 - a_1 |  =x$.   $|a_3-a_2| \leq \frac{1}{2}x$  $|a_4-a_3| \leq \frac{1}{2}|a_3-a_2|\leq \frac{1}{4}x$  In general, for every $n$:  $|a_{n+1}-a_n| \le \frac {1}{2^{n-1}}x$  Let $\epsilon &gt;0$  for every $m,n &gt; 0 $, say $m&gt;n$ the following holds:  $$|a_m-a_n| = |a_m-a_{m-1} + a_{m-1} - a_{m-2} \dots a_{n+1}- a_n| \le$$  $$|a_m-a_{m-1}| + |a_{m-1} - a_{m-2}| + \dots |a_{n+1}-a_n| \leq \frac{x}{2^{m-2}} + \frac{x}{2^{m-3}} + \dots + \frac{x }{2^{n-1}}$$.  I can say that for big enough $n,m$, $|a_m-a_n|&lt;\epsilon$ and therefore, this sequence is Cauchy? It sounds not good enough to me yet I don't know what else to do here.