<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Classic ASP</title><link>http://forums.iis.net/1032.aspx</link><description>Problems with Classic ASP (*.asp) applications discussion</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: .htaccess file type for .asp</title><link>http://forums.iis.net/thread/1873383.aspx</link><pubDate>Tue, 08 Jul 2008 00:11:15 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1873383</guid><dc:creator>horjlai</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1873383.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1873383</wfw:commentRss><description>&lt;p&gt;Here is the solution - very simple&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;lt;%&lt;br /&gt;Dim srv&lt;br /&gt;srv=Request.ServerVariables(&amp;quot;SERVER_NAME&amp;quot;)&lt;br /&gt;if srv=&amp;quot;tribeazure.com&amp;quot; then response.redirect &amp;quot;&lt;a href="http://www.tribeazure.com/"&gt;http://www.tribeazure.com&lt;/a&gt;&amp;quot;&lt;br /&gt;%&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="2"&gt;cheers&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: .htaccess file type for .asp</title><link>http://forums.iis.net/thread/1860543.aspx</link><pubDate>Thu, 13 Dec 2007 17:50:49 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1860543</guid><dc:creator>ldylion214</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1860543.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1860543</wfw:commentRss><description>&lt;p&gt;Someone wrote this code for me:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;lt;%@ Language=VBScript %&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;CONST CANONICALURL = &amp;quot;&lt;a href="http://www.tribeazure.com/"&gt;www.tribeazure.com&lt;/a&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;If Request.ServerVariables(&amp;quot;SERVER_NAME&amp;quot;) &amp;lt;&amp;gt; CANONICALURL Then&lt;br /&gt;&amp;nbsp;Dim HeaderValue&lt;br /&gt;&amp;nbsp;If&amp;nbsp; Request.ServerVariables(&amp;quot;HTTPS&amp;quot;) = &amp;quot;off&amp;quot; Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;HeaderValue = &amp;quot;http://&amp;quot; &amp;amp; CANONICALURL &lt;br /&gt;&amp;nbsp;Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;HeaderValue = &amp;quot;https://&amp;quot; &amp;amp; CANONICALURL&lt;br /&gt;&amp;nbsp;End If &lt;/p&gt;
&lt;p&gt;&amp;nbsp;If Len(Request.ServerVariables(&amp;quot;SCRIPT_NAME&amp;quot;)) &amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;HeaderValue = HeaderValue &amp;amp; Request.ServerVariables(&amp;quot;SCRIPT_NAME&amp;quot;)&lt;br /&gt;&amp;nbsp;End If&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If Len(Request.ServerVariables(&amp;quot;QUERY_STRING&amp;quot;)) &amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;HeaderValue = HeaderValue &amp;amp; &amp;quot;?&amp;quot; &amp;amp; Request.ServerVariables(&amp;quot;QUERY_STRING&amp;quot;)&lt;br /&gt;&amp;nbsp;End If&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.Clear&lt;br /&gt;&amp;nbsp;Response.Status = &amp;quot;301 Moved Permanently&amp;quot;&lt;br /&gt;&amp;nbsp;Response.AddHeader &amp;quot;Location&amp;quot;, HeaderValue &lt;br /&gt;&amp;nbsp;Response.End&lt;br /&gt;End If &lt;br /&gt;%&amp;gt;&lt;/p&gt;
&lt;p&gt;It&amp;nbsp;appears to do&amp;nbsp;the job correctly but someone told me I am playing with fire by adding codes such as this to my site.&amp;nbsp; I think he was talking about SEO.&amp;nbsp; Anyway my rankings have dropped drastically.&amp;nbsp; Could this have something to do with it?&amp;nbsp; I&amp;#39;m open to hearing anyone&amp;#39;s opinion.&lt;/p&gt;
&lt;p&gt;Thanks!&amp;nbsp; Nicci&lt;/p&gt;</description></item><item><title>Re: .htaccess file type for .asp</title><link>http://forums.iis.net/thread/1859477.aspx</link><pubDate>Tue, 20 Nov 2007 04:03:23 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859477</guid><dc:creator>ldylion214</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1859477.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1859477</wfw:commentRss><description>&lt;p&gt;Thank you, Tom.&amp;nbsp; I will do that.&lt;/p&gt;
&lt;p&gt;Also Jeff I see that I wrote Jess.&amp;nbsp; I&amp;#39;m so sorry about that.&amp;nbsp; :)&lt;/p&gt;
&lt;p&gt;Best, Nicci&lt;/p&gt;</description></item><item><title>Re: .htaccess file type for .asp</title><link>http://forums.iis.net/thread/1859459.aspx</link><pubDate>Mon, 19 Nov 2007 15:39:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859459</guid><dc:creator>tomkmvp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1859459.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1859459</wfw:commentRss><description>&lt;p&gt;After thinking about your post again, I wouldn&amp;#39;t bother with a redirect and I&amp;#39;m not sure that code would work the way you want it to anyway.&amp;nbsp; Just make sure both names point to your web server IP address.&lt;/p&gt;</description></item><item><title>Re: .htaccess file type for .asp</title><link>http://forums.iis.net/thread/1859456.aspx</link><pubDate>Mon, 19 Nov 2007 14:50:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859456</guid><dc:creator>ldylion214</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1859456.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1859456</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;jeff@zina.com:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Easiest would be to use ISAPIRewrite to do this.&amp;nbsp; Affects all requests that way.&amp;nbsp; Eeven easier is point your DNS to the same site for both records and it doesn&amp;#39;t matter.&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Jess, Do you mean point my DNS to only //www.tribe?&lt;/p&gt;
&lt;p&gt;Best, Nicci&lt;/p&gt;</description></item><item><title>Re: .htaccess file type for .asp</title><link>http://forums.iis.net/thread/1859455.aspx</link><pubDate>Mon, 19 Nov 2007 14:49:44 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859455</guid><dc:creator>ldylion214</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1859455.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1859455</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/iis/images/icon-quote.gif"&gt; &lt;strong&gt;tomkmvp:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Are you trying to add all of that at the same time?&amp;nbsp; The &amp;quot;&amp;lt;script runat&amp;quot; section is for ASP.NET and &lt;em&gt;&lt;strong&gt;will not work&lt;/strong&gt;&lt;/em&gt; with classic ASP ...&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;No, I did try them both but not at the same time.&amp;nbsp; My host suggests these codes.&amp;nbsp; The other didn&amp;#39;t work either.&amp;nbsp; However I&amp;#39;m not sure I put it in the correct location on the page.&amp;nbsp; Also I&amp;#39;m not sure if I customized it exactly right either.&lt;/p&gt;
&lt;p&gt;Best, Nicci&lt;/p&gt;</description></item><item><title>Re: .htaccess file type for .asp</title><link>http://forums.iis.net/thread/1859443.aspx</link><pubDate>Mon, 19 Nov 2007 13:25:21 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859443</guid><dc:creator>jeff@zina.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1859443.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1859443</wfw:commentRss><description>&lt;p&gt;Easiest would be to use ISAPIRewrite to do this.&amp;nbsp; Affects all requests that way.&amp;nbsp; Eeven easier is point your DNS to the same site for both records and it doesn&amp;#39;t matter.&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;</description></item><item><title>Re: .htaccess file type for .asp</title><link>http://forums.iis.net/thread/1859441.aspx</link><pubDate>Mon, 19 Nov 2007 13:11:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859441</guid><dc:creator>tomkmvp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1859441.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1859441</wfw:commentRss><description>&lt;p&gt;Are you trying to add all of that at the same time?&amp;nbsp; The &amp;quot;&amp;lt;script runat&amp;quot; section is for ASP.NET and &lt;em&gt;&lt;strong&gt;will not work&lt;/strong&gt;&lt;/em&gt; with classic ASP ...&lt;/p&gt;</description></item><item><title>.htaccess file type for .asp</title><link>http://forums.iis.net/thread/1859414.aspx</link><pubDate>Mon, 19 Nov 2007 04:52:26 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1859414</guid><dc:creator>ldylion214</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1859414.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1032&amp;PostID=1859414</wfw:commentRss><description>&lt;div class="ForumPostBodyArea"&gt;
&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;Hi all,&lt;br /&gt;I&amp;#39;m new here. I&amp;#39;ve been told a .htaccess file won&amp;#39;t work on my site because it is .asp. What would be an alternative that would work for me. I have an old javascript code for redirect Would something like this work to redirect my //tribeazure.com to //www.tribeazure?&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tested more than a few codes on my site. Here are the two my host recommends:&lt;br /&gt;&lt;br /&gt;&amp;lt;%@ Language=VBScript %&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;Response.Status=&amp;quot;301 Moved Permanently&amp;quot;;&lt;br /&gt;Response.AddHeader(&amp;quot;Location&amp;quot;,&amp;quot;http://www.tribeazure.com/&amp;quot;);&lt;br /&gt;%&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;script runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;private void Page_Load(object sender, System.EventArgs e)&lt;br /&gt;{&lt;br /&gt;Response.Status = &amp;quot;301 Moved Permanently&amp;quot;;&lt;br /&gt;Response.AddHeader(&amp;quot;Location&amp;quot;,&amp;quot;http://www.tribeazure.com&amp;quot;);&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt; &lt;br /&gt;&lt;br /&gt;Can anyone see anything I may have done wrong? I placed them at the top of the page. I get a 500 Internal Error. Grrr. I have no experience with this so I do need step by step. &lt;/p&gt;
&lt;p&gt;I apologize if this is in the wrong category.&amp;nbsp; I wasn&amp;#39;t sure where to post it.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Thanks! Nicci&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description></item></channel></rss>