Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Closed Thread
ASP redirect help! please
Old 03-26-2010, 03:12 PM ASP redirect help! please
kline11's Avatar
SearchBliss Web Tools

Posts: 1,782
Name: John
Location: USA
Trades: 0
Calling Christ Hirst, and other vbScript gurus.

Is it possible to add a 301 redirect code to the HEADRER of my ASP forum (it'll be on every page) that will 301 redirect (for example) forum/default.asp?CAT_ID=8 to forum/?CAT_ID=8 which is the same page, without creating an infinate loop, using if else statements (because it'll reside in the header)?. A url rewrite if you will? Like > if this, then 301 to this, else nothing

Thank you for any input. I cannot do this with IIS7 (no control panel access), and everything I tried with the web.config does nothing when querystrings are involved. In other words,

--------Works-------
<location path="somepage.htm">
<system.webServer>
<httpRedirect enabled="true" destination="folder/somepage.htm" httpResponseStatus="Permanent" />
</system.webServer>
</location>
--------Does NOTHING--------
<location path="forum/default.asp?CAT_ID=8">
<system.webServer>
<httpRedirect enabled="true" destination="forum/?CAT_ID=8" httpResponseStatus="Permanent" />
</system.webServer>
</location>

So I'm looking for an alternative. Thanks!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
View Public Profile
 
 
Register now for full access!
Old 03-26-2010, 03:33 PM Re: ASP redirect help! please
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,336
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.highrankings.com/forum/in...howtopic=11904
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 03-26-2010, 04:02 PM Re: ASP redirect help! please
kline11's Avatar
SearchBliss Web Tools

Posts: 1,782
Name: John
Location: USA
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Thanks Chris! You're the man!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
View Public Profile
 
Old 03-26-2010, 05:23 PM Re: ASP redirect help! please
kline11's Avatar
SearchBliss Web Tools

Posts: 1,782
Name: John
Location: USA
Trades: 0
Well Chris, I can't get this to work for me. I see the purpose of what the VBscript was written for, but I can't get it to change forum/default.asp? with a query string, to forum/? with the same query string...my little brain hurts.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
View Public Profile
 
Old 03-26-2010, 07:56 PM Re: ASP redirect help! please
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,336
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If I recall the only time Snitz forums shows the "default.asp" links is when items are "POSTed" and recoding that will throw an error as IIS doesn't handle POSTing to "virtual page", it has to be to a physical page URI.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 03-27-2010, 10:39 AM Re: ASP redirect help! please
kline11's Avatar
SearchBliss Web Tools

Posts: 1,782
Name: John
Location: USA
Trades: 0
Quote:
Originally Posted by chrishirst View Post
If I recall the only time Snitz forums shows the "default.asp" links is when items are "POSTed" and recoding that will throw an error as IIS doesn't handle POSTing to "virtual page", it has to be to a physical page URI.
I see. I think I'll just have to let this one go. There are NO links in the forum, redirect, static or otherwise that are pointing to default.asp in the URL. I am only getting the duplicate content issue for the 10 forum categories. I thought after 5 months Google would have re-indexed and found this several rimes over. They may have, but the issue may be outside links pointing to default.asp. Nothing I can do about this. Thanks for all of your help Chris!
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
View Public Profile
 
Old 12-08-2010, 01:10 PM Re: ASP redirect help! please
kline11's Avatar
SearchBliss Web Tools

Posts: 1,782
Name: John
Location: USA
Trades: 0
Quote:
Originally Posted by faca5 View Post
<%
Response.Redirect(http://www.url.com/)
%>
Thanks, but this issue was resoved in March, and if you read the thread, you'd know what I was actually asking for.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
kline11 is offline
View Public Profile
 
Closed Thread     « Reply to ASP redirect help! please
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.28795 seconds with 12 queries