473,803 Members | 3,431 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to redirect different domains to my website

254 Contributor
Hi

I want to redirect different domains which I have to my newly created website using dotnetnuke. As it is currently working on this site bytes.com(when user type thescripts.com it redirects user to bytes.com)
Jun 15 '10 #1
2 1482
Niheel
2,456 Recognized Expert Moderator Top Contributor
We are using an apache redirect.

If you are using Apache it's easy to setup.

Create a .htaccess file with the following,
Expand|Select|Wrap|Line Numbers
  1. Options +FollowSymLinks 
  2. RewriteEngine on
  3.  
  4. RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [NC]
  5. RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
Jun 15 '10 #2
Frinavale
9,735 Recognized Expert Moderator Expert
I don't know the answer to this but Kub has the right idea...he's just using the wrong web server technology as an example :)

You will need to configure your IIS server to redirect all incoming requests to your old domain to your new domain.

-Frinny
Jun 21 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3914
by: WeAreGoing! | last post by:
Hello. I need to transfer an MD5 digest number between two pages on different domains. I know this is generally not possible, but I have full access on one domain and can insert Javascript at will into tha pages of the other. I'd like to be able to store the number into a cookie for retrieval by either set of pages. I've been racking my brains for a couple of days on this one and just can't come up with the answer. Thanks in...
1
1361
by: barbaraJacob | last post by:
Hi everyone! Must deliver my project tomorrow....It's nearly finished. I've set up a website to be published in 3 different domains. - same webserver (I mean physically the same machine) - same .mdb - must display data on a page published on 3 different domains, with different look and feel - I use a dsn-less connection
0
1310
by: Ramkrishna Kulkarni | last post by:
Hi, We are using UploadData method of WebClient class in C# to establish connection(s) between two machines(typical client/server). Connection is established if the machines are on same domain. If machines are on different domains client state is SYN_SENT (and not ESTABLISHED as expected). This problem does not arise if we use sockets. Is this a problem with WebClient class or is it some networking issue(firewall etc)? Thanks,
4
2705
by: Ian | last post by:
Can anyone help I have a web server on the internet with and ASP.NET application on it, the application is set to allow Anonymous Access and Integrated Windows. The Web.config is set to use Forms authentication. On the server side, where the web server is I have set IIS to disable Anonymous access and allow Integrated Windows. I have sync'd both the APSNET account on the web servers and application server so that access will be...
2
1011
by: Trevor Oakley | last post by:
I have written an account/cart/search facility at redburg.co.uk and now I need to implement it elsewhere, eg at safavid.co.uk. The closest parallel solution I can think of is a Java Package which has several classes and can be accessed via a routine. Similarly I would like to bundle the c# code (eg cart etc) into a class (namespace) and then deploy that but allow access from some control routines from new domains. I need therefore to...
3
2274
by: glezaber | last post by:
Hi, I´ve two websites stored in IIS 5.0, and what I want is to Redirect from A website to B website, the problem is that doesn´t work because if I use Response.Redirect (http://localhost:5080) where is the A website from the B, it only works in the same machine, because if you try doing it from another one it takes de localhost directly without asking for the correct parsing. I tryed too doing it with the Server.Transfer, but that doesn´t...
2
4502
by: Josef Meierhofer | last post by:
Hi everybody, there are several SQL-Server 2000 databases within a company located on different servers in different domains. On every database you can find the same table X. I want to merge these tables X (UNION query) and print the result with a Crystal Report. Unfortunately I only have little knowledge on security, domains,
1
1487
by: timmmahh | last post by:
I want to use the new encryption capabilities in .NET 2.0 remoting (e.g using the secure attribute). I've got my demo to work on a single and multiple server deployment in the same domain, but will this also work across different domains or workgroups? I've not looked into the authenticate issues thus far, so would appreciate it if someone could let me know! Thanks in advance
5
1868
by: waqasahmed996 | last post by:
How to manage different language website according to the search engine optimization. Is it easy? If have any idea then please share me. currently i manage languages with session. That's why url's are same in each language. But i want that if a user search in French in google then if it matches company name/data of French of my website then it should go directly to French language page. Please let me know if i am not clear in my question....
0
9564
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10546
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10292
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10068
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9121
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.