1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Unlimited Sub-Category by 404 error code or Tricks

Discussion in 'C#' started by angkorboy, Oct 28, 2010.

  1. #1
    Dear All,

    I have site with asp and access database. It is possible way to make unlimited category with access database using Asp ? like in Joomla. I see many site is using Only Query string.

    Investment.asp?cat=tourism - for main sub directory
    investment.asp?cat=tourism&id=overview


    it is possible to make statistic url rewrite for directory and sub? using simple method 404 custom error coding .. our sample design :


    Investment = Main Directory

    1-Investment/tourism/, In tourism we have 3 related record:

    1-1-investment/tourism/overview
    1-2-investment/tourism/statistic
    1-3-investment/tourism/hotels
    1-3-1-investment/tourism/hotels/phno-penh/
    1-3-1-investment/tourism/hotels/phno-penh/

    and Other sub category have the same sub category related record

    Please suggest what should i do to resolve the above solution?
    SEMrush
    Thanks,
    PCBOY
     
    angkorboy, Oct 28, 2010 IP
    SEMrush
  2. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Yes. The problem with using 404 error coding to rewrite url's is that relative paths will not work. E.g: if you have an image in a page that has a src of "images/img.jpg", the page will not find the file because it will be looking for "investment/tourism/overview/images/img.jpg". The way around this is to use absolute urls for all references within your page e.g:
    <img src="http://www.mydomain.com.au/images/img.jpg" />
    The same applies to links, stylesheets, javascripts etc.
    If you do not mind doing this then using a custom 404 error page is definately a possible solution.
     
    camjohnson95, Oct 28, 2010 IP
  3. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,681
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Not sure why you'd want to use 404?

    Depending on which version of IIS your using you can do the rewriting via .htaccess or ISAPI etc
     
    AstarothSolutions, Oct 29, 2010 IP
  4. angkorboy

    angkorboy Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Asp 404 error code is free to use. However, There is less knowledge and tips about this trick :)
     
    angkorboy, Mar 6, 2011 IP