I am using asp and my links always "default.asp?id=101&cat=15" but I want to learn how this html page creat like www.domain.com/relevant-link-exchange-forum/37376-new-asp-reciprocal-link-exchange-script.html ?
ludwig, how do you find search engines to react to 404 redirects? In my experience with playing around with 404 error string manipulation - i found that google was able to detect that the page was not there and treated it as if it were a bad link. Of course this has been a few years back now - and google has no doubt changed a lot since then - but i did have one site just drop out of google almost entirely when i did the 404 redirect trick on it. Do you find that google picks it up fine these days? just curious - i might revisit it on a test site just to see if you feel that it's viable in today's SE market. later tater vectorgraphx
Hi again guys, Well VG, I think you are right about 404 error, what about 301? I think the big G treats it good enough to consider as a webmaster redirect. So, I can have them as follows: there are 2 main ways #1 Create as many pages as you need with a HTTP 301 redirect to lets say: default.asp?id=101&cat=15 #2 Is as I said the 404, don't think there is any other way. Yes in PHP its mode rewrite, but in ASP I think the best solution is 404.asp file You create false links on your site, lets say we-are-here.html When the URL is not found the browser is redirected to your 404.asp file (you should set it up from your IIS or hosting company's control panel) then your 404.asp file acts as follows: 1. it gets the URL (we-are-here.html) 2. Find the match for it from your DB 3. shows the user default.asp?id=101&cat=15 The URL of the browser stays as it is but actually your 404.asp which is an error page shows what you need under any-type-of-url.htm Hope I explained the case clearly. I read it on some website don't remember where, but I am not sure if there is a better solution with ASP
agreed. i've tried out isapi rewrite, url rewrite, and others (cant recall specific names) which either want you to set a global .htaccess type file (by global i mean applied to ALL websites on a server) or pay for the full version which lets you have unique rewrite ability on the directory and domain level. Seems like ASP devs are always gettin the shaft don't it? apache and php offers so many free options - it's very frustrating. microsoft DIRELY needs to build some sort of .htaccess patch for IIS, they're really missing the boat on this one IMHO. It's enough to make a seasoned sailor want to jump ship and hop aboard the U. S. S. Apache and start braving the deep, dark waters of the PHP sea... ugh vectorgraphx
well I think the new .NEt hould have most of the errors of ASP covered, but unfortunataly the thing is that only 5000 programmers at microsoft decide what type of programming you should use, and then in a year or so, they get drunk and decide to change the whole programming language of ASP or .NET How much is ASP changed when it reached ASPX its like a PHPASPC#VBSCRIPT in other words, sucks
Just write your own HTTPHandler, this is exactly what you want & is really easy. Even easier (if you are not storing info in sessions), just write your redirect code in the Application_BeginRequest event and use HttpContext.Current.RewritePath Why people are suggesting Apache solutions when the guy said he used ASP is beyond me.
You don't use 301 redirects or something like that in combination with a custom 404. I have done custom 404 for a couple of years. If Google were threating your custom 404 as bad links you are doing things wrongly. You don't have to write a HTTPHandler or use sessions. As an example, my latest custom 404 driven site: http://www.strictlycss.com