Forum Moderators: phranque
[subdomain1.domain.com...] -> [subdomain2.domain.com...]
I do not want the subdomain1 variable to be a wildcard however. The subdomains are already defined, so I can just create a different .htaccess rewrite for each one.
Don't ask me what I have tried so far because I have just modified other rewrite code and have gotten virtually nowhere thus far. :P
I would appreciate any help. Thanks so much in advance!
For more information, see our forum charter [webmasterworld.com] and the documents cited therein.
Jim
#Internally rewrite "testing" subdomain to /testing subdirectory within another subdomain (subdomain2)
rewriteCond $1!^testing/
rewriteCond %{http_host} ^testing\.domain\.com
rewriteRule (.*) subdomain2\.domain\.com/accutag/$1 [L]
The tricky part is the fact that I am trying to rewrite to a completely seperate subdomain. Is this even possible?
Is there anything i can do within a conf file on the server to accomplish this?
#Internally rewrite "testing" subdomain to /testing subdirectory within another subdomain (subdomain2)
rewriteCond $1!^testing/
rewriteCond %{http_host} ^testing\.domain\.com
rewriteRule (.*) subdomain2\.domain\.com/testing/$1 [L]
Then we have the question of whether these subdomains are all hosted in the same "account space" on the same server; If so, then subdomains are meaningless, because they essentially 'disappear' once the request is inside the server, leaving only (possibly) filespace differences.
Is this your only rewriterule? Do you have others that work? If not, have you set up and enabled mod_rewrite with the Options and RewriteEngine directives?
But the main question is "What, overall, are you trying to accomplish with this? If you can answer in terms of URLs (as seen in your browser) and filespace (as defined in your server) that will lead to an efficient exchange.
Also, if you can examine your server error log, the information listed there related to this error may be very useful to all.
Jim