473,394 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

URL Rewriting at Domain level

The first scenario is that I want to create one website for a particular
industry - let's say for Farm Machinery

so I have a shared hosting site called myFarmMachinery.com

But I want to sell site creation, using database page creation to multiple
companys who generally have their own domain name.

So, then, these domains, I need to forward to my one IP address for
myFarmMachinery.com
JohnsEquipment.com = John
MarksNewEquipment.com = Mark

Is there anyway to make it rewrite to:
myFarmmachinery.com/john
myFarmmachinery.com/mark
etc

Then, depending on the url, there, the database will show company specific
details, but the sites will be based on one basic site.(I have no problem
with designing it, database wise, I'm just looking for an alternate way to
set it up with the urls

the alternate scenario is that they don't have a domain name and are not
getting one - - but I still want it to look like:
myFarmmachinery.com/john
myFarmmachinery.com/mark

but I don't want to use querystrings

What's the best approach for something like this?
Sep 27 '08 #1
2 2314
sp1 for .net 3.5 contains the url rewriter support you need (url
routing). your rewrite code will need to look at the host header (sent
by the browser) to determine the rewrite path. unless your using iis
7.0, you will need to map all content to asp.net for the rewriter to
process non asp.net pages requests (like images)
this could also be done with an isapi filter easily. you could buy a 3rd
party one if you are unable to code in c/c++

-- bruce (sqlwork.com)
Seth Williams wrote:
The first scenario is that I want to create one website for a particular
industry - let's say for Farm Machinery

so I have a shared hosting site called myFarmMachinery.com

But I want to sell site creation, using database page creation to multiple
companys who generally have their own domain name.

So, then, these domains, I need to forward to my one IP address for
myFarmMachinery.com
JohnsEquipment.com = John
MarksNewEquipment.com = Mark

Is there anyway to make it rewrite to:
myFarmmachinery.com/john
myFarmmachinery.com/mark
etc

Then, depending on the url, there, the database will show company specific
details, but the sites will be based on one basic site.(I have no problem
with designing it, database wise, I'm just looking for an alternate way to
set it up with the urls

the alternate scenario is that they don't have a domain name and are not
getting one - - but I still want it to look like:
myFarmmachinery.com/john
myFarmmachinery.com/mark

but I don't want to use querystrings

What's the best approach for something like this?

Sep 27 '08 #2
But I want to sell site creation, using database page creation to
multiple
companys who generally have their own domain name.
Then, depending on the url, there, the database will show company
specific
details, but the sites will be based on one basic site.(I have no
problem
with designing it, database wise, I'm just looking for an alternate way
to
set it up with the urls
You need to use URL rewriting or url mapping. It is not the same. Look at:
http://longurl.net/URLRewritingASPNET.aspx for asp.net url rewriting
tutorial and tools (add-ons). If you need url mapping instead url rewriting,
than you can do this in asp.net without add-ons, but url rewriting you can
not do in asp.net without 3rd party components.
Sep 29 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ricky Romaya | last post by:
Can I have somekind of URL rewriting mechanism without touching the web server's configuration (implemented in pure PHP) and win32 compatible? All the info I have teaches about apache's mod_rewrite...
3
by: Showjumper | last post by:
Can one use url rewriting to make a url such as http://somesite.com/support/default.aspx look like support.somesite.com?
2
by: Alan Silver | last post by:
Hello, If I use URL rewriting, so the user types in an URL like... http://www.domain.com/user_fred.aspx and this is quietly converted to... http://www.domain.com/users.aspx?user=fred
2
by: David | last post by:
Hi all, I know that we can quite easily do URL ReWriting but all I have seen is changing something from parameters to a page name. What I want to do is to go to a lower level... Say I have...
3
by: Joe User | last post by:
Hi - I found the class below on another website (www.devx.com) and can't seem to figure out how to make a call to this class to retrieve the machines and put them in a listbox. I am definitely a...
0
by: Rob Roberts | last post by:
I have developed an ASP.NET 2.0 application using localhost on my Windows XP workstation, and it all works fine there. I tried to copy it to my test web server, which is a domain controller...
9
by: Frankie | last post by:
I understand that with URL rewriting we can have a request come in for, say Page1.aspx, and rewrite it so that PageA.aspx gets served up to the user. My question (assuming the above is correct):...
2
realin
by: realin | last post by:
hi guys, i want to use URL writing now, cause the other weird characters give a bad impression to the search engines and feeds. can you tell me what is the code to be written in .htaccess.....
1
realin
by: realin | last post by:
hi guys, i have done URL rewriting thing after visitng many sites.. now the problem is i am unable to do it for two different urls, an example can be ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.