Michael Muller
2015-01-15 17:55:46 UTC
Hey all,
I'm trying to do an internal URL rewrite similar to this...
RewriteRule ^/news/?$ /index.cfm?p=n.0 [QSA]
... whereby instead it rewrites the http_host (I think) such that this...
http://clientdomain.myhostingcompany.com/hello
... internally maps to this...
http://clientdomain.com/hello
This needs to be a regex global rule, as there are literally hundreds of subdomained URLs that I need to parse and map to the non-subdomained version.
The .com needs to be captured, as the top level domain may be a net or org or us, etc.
Any advice?
Thanks,
Mik
I'm trying to do an internal URL rewrite similar to this...
RewriteRule ^/news/?$ /index.cfm?p=n.0 [QSA]
... whereby instead it rewrites the http_host (I think) such that this...
http://clientdomain.myhostingcompany.com/hello
... internally maps to this...
http://clientdomain.com/hello
This needs to be a regex global rule, as there are literally hundreds of subdomained URLs that I need to parse and map to the non-subdomained version.
The .com needs to be captured, as the top level domain may be a net or org or us, etc.
Any advice?
Thanks,
Mik