473,386 Members | 1,673 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,386 software developers and data experts.

rewrite of url in same hosting space

All:

I have a site hosted at Verio that has four different domain names
pointing to it. So when you browse to any of the four domain names,
the same site is displayed. What I would like to do is make it so
www.domain1.com is the primary URL, and if anyone browses to the site
using any of the other addresses, the address is changed to reflect
www.domain1.com.

Furthermore, I'd like it so if someone navigates to www.domain2.com/somepage.asp,
the address is changed and the path is retained, so the browser's
address bar changes to www.domain1.com/somepage.asp.

Is this possible to do when I don't have much access to the server
(i.e. Verio-hosted space)? What code can I use to do this?

Thanks,
Michael

May 10 '07 #1
3 1661

"brown705" <br******@gmail.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
All:

I have a site hosted at Verio that has four different domain names
pointing to it. So when you browse to any of the four domain names,
the same site is displayed. What I would like to do is make it so
www.domain1.com is the primary URL, and if anyone browses to the site
using any of the other addresses, the address is changed to reflect
www.domain1.com.

url = "www.domain1.com" & Request.ServerVariables("PATH_INFO")
Response.Redirect(url)

Furthermore, I'd like it so if someone navigates to
www.domain2.com/somepage.asp,
the address is changed and the path is retained, so the browser's
address bar changes to www.domain1.com/somepage.asp.

Is this possible to do when I don't have much access to the server
(i.e. Verio-hosted space)? What code can I use to do this?

Thanks,
Michael
May 11 '07 #2

"ThatsIT.net.au" <me@thatsitwrote in message
news:3B**********************************@microsof t.com...
>
"brown705" <br******@gmail.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
>All:

I have a site hosted at Verio that has four different domain names
pointing to it. So when you browse to any of the four domain names,
the same site is displayed. What I would like to do is make it so
www.domain1.com is the primary URL, and if anyone browses to the site
using any of the other addresses, the address is changed to reflect
www.domain1.com.


url = "www.domain1.com" & Request.ServerVariables("PATH_INFO")
Response.Redirect(url)
sorry that should be

url = "http://www.domain1.com" &
Request.ServerVariables("PATH_INFO")
Response.Redirect(url)
>
>Furthermore, I'd like it so if someone navigates to
www.domain2.com/somepage.asp,
the address is changed and the path is retained, so the browser's
address bar changes to www.domain1.com/somepage.asp.

Is this possible to do when I don't have much access to the server
(i.e. Verio-hosted space)? What code can I use to do this?

Thanks,
Michael
May 11 '07 #3
unless the webhost offers something to do this, you'll probably need to place code in every page that parses out the url, performs a
replacement and a redirect .

"brown705" <br******@gmail.comwrote in message news:11**********************@q75g2000hsh.googlegr oups.com...
All:

I have a site hosted at Verio that has four different domain names
pointing to it. So when you browse to any of the four domain names,
the same site is displayed. What I would like to do is make it so
www.domain1.com is the primary URL, and if anyone browses to the site
using any of the other addresses, the address is changed to reflect
www.domain1.com.

Furthermore, I'd like it so if someone navigates to www.domain2.com/somepage.asp,
the address is changed and the path is retained, so the browser's
address bar changes to www.domain1.com/somepage.asp.

Is this possible to do when I don't have much access to the server
(i.e. Verio-hosted space)? What code can I use to do this?

Thanks,
Michael

May 11 '07 #4

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

Similar topics

8
by: codephreak00 | last post by:
can anyone recommend a company with competitive asp web hosting reseller plans (would love to make a little extra cash for the holidays)? ...
0
by: Jim | last post by:
Hi, I have got a shared hosting package with 1&1. It seems to work well. However, I have hit a small hosting problem. Basically I have 1 domain and 1 subdomain www.mydomain.com...
4
by: Michael | last post by:
At http://www.asp.net/Customers/DisplayByIndustry.aspx?IndustryId=27, there are hundred of ASP.NET hosting companies. Can you suggest one or a couple of good ones? I'm looking to build a small...
5
by: Ammar | last post by:
Hi all.. I wonder weather you know some good and cheap ASP.NET hosting site. The only free hosting service i found was the Web Matrix site, but there are many restirctions in that site regarding...
9
by: Stimp | last post by:
Hi all, I'm going to be moving my site to a new hosting provider at the end of the month. Can anyone recommend a good windows (.NET) hosting provider? My requirements are as follows: -...
0
by: Kunal Pandya | last post by:
Windows Web Hosting @ $ 14.95 / Year! with FREE Domain Registration!!! + Web Control Panel + MIn. 5 Email Boxes + Packages starting from as low as 10 MB upto 50 GB dedicated hosting + Extra...
0
by: Jochen Berninger | last post by:
I want to setup a new domain. For this I need a new hosting service (with a lot of web space). This web space / hosting service provider should offer a full package including Mail+Ftp server. Are...
1
by: karen.systems | last post by:
WOLWER offers new web hosting packages ==================================================== Unix Web Hosting * Unix Virtual Private Hosting * 5 GB to 500 GB Web Space * Sub Domains, POP3 and...
8
hsriat
by: hsriat | last post by:
I had a .htaccess file for Rewrite on my server and was working fine. Now when I used the same code in 1and1 hosting, its not working. May be something is wrong or unexpectedly good happening...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.