Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2010

    Wanting to rewrite asp pages

    So I am optimizing a website for a friend. The site is built in asp and they have very unfriendly urls for the search engines.

    I am having 2 problems with the programmer

    1) supposedly some of the URLs are database driven and they cannot simply change the URL structure
    example change
    to new url

    does that sound right? a simple url change cannot happen because it is too much work?

    2)I dont want the urls to end in .aspx
    can the urls end with a forward slash?

    seems fishy to me like they are being lazy.

  2. #2
    Join Date
    Jul 2008
    Atlanta GA
    1) Correct. The URL is a dynamic page reference. The dest=39 will be used by the ASP script to pull the correct information out of the database.

    2) The only URL you can have end in a forward slash is the one that will return the default index page. And you can have only one default index page per web directory. All other pages must use a URL the includes the page name. The extension (.aspx) is used by IIS to route the page to the correct rendering engine. This one you can't avoid since this is how URLs and requesting pages works.

  3. #3
    Join Date
    Jun 2011



    I am working on something similar but didn't know what route to take.
    If I'm hearing centauricw correctly, you are saying you can not change the url name?

    Someone suggested to me to create new directories like so:
    Then create a new page, adding the source code from the exsisting aspx page, and name it index.aspx.
    then put it into that subsubfolder or where ever you need it.

    That way you have your url as you need it and can redirect the old url to that one.

    A big work around, but would that work?

  4. #4
    Join Date
    Mar 2010
    thanks i appreciate it. I have been looking around the web and seems to be some programs that can handle this

    PS.....can database driven pages be 301 redirects easily?
    Last edited by seothomas; 06-15-2011 at 06:29 PM.

  5. #5
    You can use IIS URL Rewrite module to configure the URLs and 301 redirection.

  6. #6
    Join Date
    Apr 2005
    Raleigh, NC

Similar Threads

  1. ASP.NET MVC - Rewrite Help
    By LJ Host in forum Programming Discussion
    Replies: 0
    Last Post: 11-09-2010, 12:10 AM
  2. php rewrite mode in asp?
    By Dario Cukier in forum Programming Discussion
    Replies: 2
    Last Post: 03-31-2008, 11:39 AM
  3. ASP.NET & URL Rewrite
    By lockrem in forum Hosting Security and Technology
    Replies: 5
    Last Post: 10-29-2007, 10:31 AM
  4. Is the ASP/ASP.NET Rewrite Successful for Big Portals?
    By r2h in forum Programming Discussion
    Replies: 3
    Last Post: 12-12-2005, 12:04 PM
  5. Anyone ever try to make dynamic pages static using mod rewrite?
    By Max Renn in forum Hosting Security and Technology
    Replies: 2
    Last Post: 07-24-2005, 06:33 AM

Posting Permissions

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