RewriteEngine On RewriteCond %{HTTP_HOST} !^domain.com$ [NC] RewriteRule .* http://domain.com?domain=%{HTTP_HOST} [R,L]On Fri, Nov 9, 2012 at 1:05 PM, Steffan A. Cline <steffan@xxxxxxxxx> wrote:Thanks for the URL. I did not read this one, but a similar one also on the site.I did not blindly ask for suggestions without trying it first.The issue I ran into was too many redirects. Clearly I didn't get it right and hoped someone may have something worth trying. ThanksSteffanOn 11/8/12 6:32 PM, "Igor Cicimov" <icicimov@xxxxxxxxx> wrote:On Fri, Nov 9, 2012 at 9:59 AM, Steffan A. Cline <steffan@xxxxxxxxx> wrote: I am trying to figure out a specific rewrite. I have a default host set up to catch any domains not served on the specific server. I am trying to direct unknown domains in a manner such as : default domain would be domain.com So, abc.com hits, it would be rewritten tohttp://domain.com?domain=abc.com orhttp://domain.com/abc-com/ Any suggestions?Yes, read the mod_rewrite page its all in therehttp://httpd.apache.org/docs/2.2/mod/mod_rewrite.html Thanks Steffan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
Thanks for the URL. I did not read this one, but a similar one also on the site.I did not blindly ask for suggestions without trying it first.The issue I ran into was too many redirects. Clearly I didn't get it right and hoped someone may have something worth trying. ThanksSteffanOn 11/8/12 6:32 PM, "Igor Cicimov" <icicimov@xxxxxxxxx> wrote:On Fri, Nov 9, 2012 at 9:59 AM, Steffan A. Cline <steffan@xxxxxxxxx> wrote: I am trying to figure out a specific rewrite. I have a default host set up to catch any domains not served on the specific server. I am trying to direct unknown domains in a manner such as : default domain would be domain.com So, abc.com hits, it would be rewritten tohttp://domain.com?domain=abc.com orhttp://domain.com/abc-com/ Any suggestions?Yes, read the mod_rewrite page its all in therehttp://httpd.apache.org/docs/2.2/mod/mod_rewrite.html Thanks Steffan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
On Fri, Nov 9, 2012 at 9:59 AM, Steffan A. Cline <steffan@xxxxxxxxx> wrote: I am trying to figure out a specific rewrite. I have a default host set up to catch any domains not served on the specific server. I am trying to direct unknown domains in a manner such as : default domain would be domain.com So, abc.com hits, it would be rewritten tohttp://domain.com?domain=abc.com orhttp://domain.com/abc-com/ Any suggestions?Yes, read the mod_rewrite page its all in therehttp://httpd.apache.org/docs/2.2/mod/mod_rewrite.html Thanks Steffan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
I am trying to figure out a specific rewrite. I have a default host set up to catch any domains not served on the specific server. I am trying to direct unknown domains in a manner such as : default domain would be domain.com So, abc.com hits, it would be rewritten tohttp://domain.com?domain=abc.com orhttp://domain.com/abc-com/ Any suggestions?
Thanks Steffan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx