lucy24 - 9:36 pm on Jul 4, 2013 (gmt 0)
RewriteRule ^(subdomain1/.*) http://subdomain1.example.com/$1 [R=301,L]
Works the same as the code I am using
Well, it is the code you am using. The question was why the element "subdomain" appears twice in the URL.
I use the subdomain twice because in some cases the name of the subdomain is different from the name of the folder.
Now, wait. Do you mean "folder" as in "element of URL" or "folder" as in "physical directory"?
If you have eighteen rulesets involving subdirectory redirects, then you must also have eighteen rulesets-- or a smaller group using pipes and captures-- involving rewrites from the URL to the physical location of the content. In a three-dimensional universe, forms like
cannot directly represent a physical location in the way that