Results 1 to 15 of 15

Thread: IIS 4.0 + Search Engine Friendly URL's

  1. #1
    Registered
    Join Date
    Aug 2003
    Location
    Columbus, Ohio
    Posts
    122

    IIS 4.0 + Search Engine Friendly URL's

    I read the articles featured here about Search Engine Optimization, but most of them dealt with Apache's capabilities. Are there any tips and tricks that would give the same outcome...SEO-friendly URL's...for Microsoft servers? At the momoent I am using the standard "...?var=info" format to sent requests to MySQL.

    Also, what is the best way to give links to outside resources without punching "holes" in my website? Will redirectors work?

    ERIC

  2. #2
    Registered flyingpylon's Avatar
    Join Date
    Sep 2003
    Location
    Fishers, IN USA
    Posts
    144
    IIS is sorely lacking in this department. I still can't believe that even with IIS 6.0 they don't have functionality equivalent to .htaccess or mod_rewrite.

    If you have the ability to install ISAPI extensions on your server (you probably don't if you're on a shared host) then there are a few different choices. One is URL Replacer http://www.pstruh.cz and another is called Mod Rewrite 2 http://www.iismods.com. I think there are others as well.

    If that's not an option, you can create a custom 404 error page. You make your links go to directories or files that are search engine friendly but don't really exist. The 404 page parses the requested URL for parameters you've defined and loads the appropriate content. With IIS 5.0 you also have the option of specifying a different page via Server.Execute or Server.Transfer.

    Another option with a 404 page is to parse the URL but then call another page via the WinHTTP object or the ServerXMLHTTP object. This will be a little slower, but it will allow you to specify querystring parameters when calling the page which Server.Execute and Server.Transfer will not. However, I'm not sure if this is possible with IIS 4.0.

    I'm not really sure what you mean in your second question.

  3. #3
    Registered
    Join Date
    Aug 2003
    Location
    Columbus, Ohio
    Posts
    122
    Chris wrote the analogy of links leading to your site to be water filling a bucket, and links away from your site as holes letting the water out. Is there any way to link to outside URL's without hurting SE rating?

  4. #4
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,051
    Link it through a redirect script.

    You can make a database of outgoing links and reference them by a numeric primary key.

    http://www.example.com/exit/out.asp?id=389

    So out.asp is loaded, then it scans the database for link 389 and then forwards the person to the new url.

    Then you add a robots.txt file to your site that blocks search engines access to the exit directory.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  5. #5
    Registered
    Join Date
    May 2003
    Posts
    84
    I've had this problem before.

    Ive noticed that the 404 error page method will not get your page index by Google (well I waited for 2 months and it didn't index me, most other pages got index in about 1-2 weeks).

    Another method that I have used is by using the ISAPI_REWRITE method (http://www.isapirewrite.com) and it works a treat.

    Dolphin

  6. #6
    Registered flyingpylon's Avatar
    Join Date
    Sep 2003
    Location
    Fishers, IN USA
    Posts
    144
    Originally posted by dolphin
    Ive noticed that the 404 error page method will not get your page index by Google (well I waited for 2 months and it didn't index me, most other pages got index in about 1-2 weeks).
    That might be true if you used the 404 page to do a Response.Redirect or something. But if done properly, there is no way for Google to tell that the requested page does not really exist. It requests a URL, content is returned with an HTTP status of 200, and that's it. Just like a normal page.

    Regarding outgoing links, I believe that you can also just provide the destination URL as a parameter. So using Chris' example, it would be out.asp?url=http://www.domain.com

  7. #7
    Registered
    Join Date
    Aug 2003
    Location
    Columbus, Ohio
    Posts
    122
    I'd rather not go with sending all my visitors to 404 pages. I'd rather just wait until MS comes up with something or I can find another way. That just sounds like a mess that I don't want to clean up later. I'm also not on my own server so having access to all the config files is a no-no.

    Is out.asp a native script, or do I need to write the contents of it. If so, what belongs there? Also, it looks like the latter method with the URL in the link request wo't work because it doesn't block the SE's from following them. Can someone confirm this?

  8. #8
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,051
    Its a script you write.

    inside it you just call up the url from the database and then do a redirect, I'm not sure how to do it in ASP but in php its

    <?
    header("Location: http://www.example.com");
    ?>
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  9. #9
    Registered
    Join Date
    Aug 2003
    Location
    Columbus, Ohio
    Posts
    122
    Hey Chris, what were you saying about blocking SEs from hitting the redirects. What would I need to put into scripts that allow this? I wouldn't do it in .asp anyway. I'm gonna stick to .php in case I want to move to an Apache server.

    Also I haven't seen a thread yet about relational databases and how to access them through PHP and MySQL so I'm gonna start one...

  10. #10
    Registered flyingpylon's Avatar
    Join Date
    Sep 2003
    Location
    Fishers, IN USA
    Posts
    144
    I'd rather just wait until MS comes up with something
    I believe there are ways to do this with ASP.Net. But if you're stuck with IIS 4.0 then I don't believe that's an option. I'm not sure you're understanding the 404 option completely, but if you don't want to do it, that's your choice.

    Regarding the outgoing links, what you need to do is use the robots.txt file to block search engines from following links through your outgoing link processing script (out.asp or out.php or whatever you decide to call it).

  11. #11
    Registered
    Join Date
    Aug 2003
    Location
    Columbus, Ohio
    Posts
    122
    I already have my site pretty much up and running with regular "...?var=info" links to all my pages. I'm just trying to optimize. Would it take too much effort and construing to implement the whole 404 error tecnuique??? Would going back require too much?

  12. #12
    Going strong! Kings's Avatar
    Join Date
    Aug 2003
    Posts
    61
    Originally posted by Chris
    Its a script you write.

    inside it you just call up the url from the database and then do a redirect, I'm not sure how to do it in ASP but in php its

    <?
    header("Location: http://www.example.com");
    ?>
    Code:
    <%
    Response.Redirect "http://www.example.com"
    %>
    Dennis Pallett

  13. #13
    Registered
    Join Date
    Aug 2003
    Location
    Columbus, Ohio
    Posts
    122
    What's that mean, Kings? I'm an idiot, you gotta break stuff down Barney-style...

  14. #14
    Going strong! Kings's Avatar
    Join Date
    Aug 2003
    Posts
    61
    Originally posted by Stevens
    What's that mean, Kings? I'm an idiot, you gotta break stuff down Barney-style...
    It's the ASP equivalent of Chris' PHP code.

    For your out.asp file you'd probably do something like this:
    Code:
    <%@ Language=VBScript %>
    <%
    Response.Redirect Request.QueryString("url")
    %>
    and then you can use out.asp?url=http://www.somesite.com.
    Dennis Pallett

  15. #15
    Registered
    Join Date
    May 2003
    Posts
    84
    Here is the tutorial I used for the 404 redirect method

    http://www.asp101.com/articles/wayne...es/default.asp

    have fun

Similar Threads

  1. Search Engine Friendly URLs Problem
    By cameron in forum Search Engine Optimization
    Replies: 5
    Last Post: 02-24-2004, 08:43 PM
  2. Search Engine friendly urls ?
    By Dan in forum Search Engine Optimization
    Replies: 6
    Last Post: 02-11-2004, 06:26 PM
  3. are iframes search engine friendly?
    By grichards in forum Search Engine Optimization
    Replies: 1
    Last Post: 01-04-2004, 10:58 AM
  4. Search Engine Friendly URLS
    By dolphin in forum Search Engine Optimization
    Replies: 8
    Last Post: 12-01-2003, 09:01 PM
  5. Search Engine Friendly URL's - Directives
    By Mike in forum Website Programming & Databases
    Replies: 18
    Last Post: 11-19-2003, 10:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •