Automatically create subdomain or directory that redirects (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


jonance -> Automatically create subdomain or directory that redirects (4/24/2008 22:28:01)

This is probably a tough one but i'm not sure where else to turn...

I have a business directory i have programmed in asp using Frontpage and my own code. Currently a user can search for a business in town by keyword or category and it brings up a list of businesses that match....featured businesses get listed at the top with a click through to their own page where i allow them to edit their description, coupons, etc.

PROBLEM: This page is just pulling from a database, so no matter which business it is the url is something like www.myguide.com/businesspage?ID=8377

Obviously the ID is that businesses ID to pull from the database...problem is that these businesses would like to have a URL like www.myguide.com/tonyspizza to send customers to. SO....is there any way i can pull this off where I can automate a way for this to work, without having to create a directory each time a business signs up (i would have 100's of directory folders all mixed in with my others)...I hope someone has a suggestion, even if it's outside of the box, to clean up the url and have the company name in it for both the search engines and for their promotional purposes....Thanks in advance if you read this far [8D]




rdouglass -> RE: Automatically create subdomain or directory that redirects (4/25/2008 0:35:38)

If you're using a Win server, look into something called ISAPI_Rewrite. With that you can use a URL something like:

www.myguide.com/tonyspizza-8337

for that. You're not going to get away without that '8337' in there somewhere. But with it, I create URLs like this:

/details-Classic_Air's_One_Hour_Heating_&_Air_Conditioning-261-Camden_County-629-Heating_Service_&_Install-56.aspx

That's what I'd suggest. Hope it helps.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.109375