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? Thanks, PCBOY
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.
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