<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Adam Chlipala wrote:
<blockquote cite="mid:%3C485D6E0E.4080905@hcoop.net%3E" type="cite">
<pre wrap="">wmsar wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'd like to redirect "<a class="moz-txt-link-abbreviated" href="http://www.whitemountainsar.net">www.whitemountainsar.net</a>" and
"whitemountainsar.net" --> "whitemountainsar.org".
With the domtool configuration below, I get "<a class="moz-txt-link-abbreviated" href="http://www.whitemountainsar.net">www.whitemountainsar.net</a>"
redirected to "whitemountainsar.org". Great! However.
"whitemountainsar.net" is not properly redirected and either the HCOOP
main page pops up, or an ugly version of the .org website (not sure why).
dom "whitemountainsar.net" with
web "www" with
rewriteRule "/.*" <a class="moz-txt-link-rfc2396E" href="http://whitemountainsar.org">"http://whitemountainsar.org"</a> [redirect];
end;
end;
I've tried adding other rewriteRules above the "web www with" area, but
that doesn't appear to be valid. Any help?
</pre>
</blockquote>
<pre wrap=""><!---->
You're only asking for a redirect for "<a class="moz-txt-link-abbreviated" href="http://www.whitemountainsar.net">www.whitemountainsar.net</a>," not
"whitemountainsar.net," and you're getting exactly what you ask for. Put
the [rewriteRule] in a [WWW] block instead. See the DomTool/Examples
wiki page for examples.
Also, it would be nicer to redirect to a proper URL by including the "/"
after "....org".
</pre>
</blockquote>
<br>
Thanks!<br>
</body>
</html>