How Do I Redirect Visitors, Who Type In My IP Address, To My Domain
I have what seems to be a simple redirect question. I have a dedicated server and a few static IP addresses, but I want to make it so if someone were to type in my IP address in their browser, Apache will redirect them to the domain name. (Typing in [url]
What happens now is that if you were to type in my server's IP address, it will show you the FIRST VirtualHost container that's listed in httpd.conf. This is not so bad since I've placed my main company site at the start of the list, but I'd rather redirect the IP into the domain name I use.
I read somewhere that you can place Mod RewriteRules directly in the VirtualHost container rather than using .htaccess, but the few "rules" that I tried didn't seem to do anything. And yes, I restarted Apache each time I edited httpd.conf.
Is there an easy way to do this?
ALSO, is there a way to redirect the name server address too? If you type in [url]into the browser, it acts the same way. I would ultimately like to redirect both the nameservers and the IP address(es) to the domain name.
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Htaccess - Redirect All Visitors Except Certain IP Address
could not find a solution for this reversed blocking I would like to redirect users who access the site from any IP address to be redirected like this: RedirectMatch /(.*)$ hxxp://extranet.domainname.com and have anyone from an IP address of 123.123.123.123 to just access/view the regular site, so not to be redirected. how I can do this in my .htaccess file?
View Replies!
View Related
How2 Redirect Visitors To A Mobile Subdomain
We have an established site for which we want to add a 'mobile-appropriate' subdomain geared to phone surfers. Our host (1and1) confirms their servers detect mobile visitors but they couldn't help me with how to read the server flag(?) or whatever and then redirect the server to our mobile subdomain when appropriate. Can anyone point to an appropriate how2? (Note I don't need "mobile code" help help - just help with how to redirect mobile visitors transparently off our main site and into its mobile subdomain).
View Replies!
View Related
How To Redirect Visitors To A Subpage Depending On The Url They Entered
My client has just purchased hosting (not through my hosting company but one they wanted to use) for their main domain but they also have a number of more specific domains that need to be pointed to a specific page in the website. The trouble is that for these additional the new host say they can only point to the main domain (IP address) at DNS level and not to a specific page. Any idea how to go about this (apart from using another host!)? Can I use a script that can tell what url they have typed into their browser and forward them to the correct page? I want to avoid the need for a hosting package for each domain just for a simple redirect page!
View Replies!
View Related
Moved Content From Root To Subdomain And Need To Redirect Visitors
I moved my content from www,mysite,com to subdomain,mysite,com. I'd like to direct people who come to my site from search engines to the new location of the content. For example, if they searched for pink purse and the search result was www,mysite,com/pink_purse,html, when they click that link, I'd like for them to redirected to subdomain,mysite,com/pink_purse.html. Can this be accomplished with some .htaccess magic?
View Replies!
View Related
New Type Of Spam Emails (same FROM And TO Address)
we are receiving a new type of spam emails in most of the domains hosted on different servers. In this type of spam emails, the From address is the same as the To address and is of the user who is receiving the emails. For example, a@abc.com is sending email to a@abc.com which is not originating from the server. However, since the From Address is the same as the To address, it fools the antispam and the emails are delivered as genuine emails. Has anybody else faced the same problem lately? Does anybody have as workaround to stop these type of spam emails?
View Replies!
View Related
Redirect To New Address
we change the name of one our directory on our host, we have some file on this directory and some website linked to this files. now how can redirect all address to new address? for example our old address is: [url] now this file located on: [url]
View Replies!
View Related
Redirect Subdomain To IP Address
I have 2 dedicated server. on server a I created an account. on this account I created a subdomain named test.mydomain.com on server b I created a new account with dedicated IP . now, I want redirect test.mydomain.com to my dedicated IP on server b . I have cpanel on both server . I changed the A record of IP of in mydomain.com , but this is not work
View Replies!
View Related
Create Dns To Redirect To Some Ip Address
Not sure where this thread so go, so posted it here! Cause bunnies do not fear mods somedays. Anyways.... So i wanted to setup say a dns bunny.somedomainihaveisuppose.dom to say my ip say xxx.xxx.xx.xx . , how can you do that in cpanel say or say in whm panel, and is there any script maybe like say no-ip.com guys use, that can do a change mannually whenver you want to your ip? Why am i not using other 3rd part services, cause a. they charge you to keep your dns name else it expires after few days or something if changes are not made... So any solution or howto for setting up on your hosting account a dynamic dns kinda service?
View Replies!
View Related
Getting Loads Of Unique Visitors From Italy On A Domain Not Used
I was just looking at awstats for a domain that is not in use and only got a max of 10 visits a month till October 08. Now since November 2008 I have been getting a lot of unique visitors from Italy but there is nothing on the domain, no folders or files. Here is what AWStats say: Nov 08: 710 Dec 08: 1593 Jan 09: 4243 (so far) These are unique visitors 99% coming from Italy What do you think going on ? The domain in question is testingurl.com
View Replies!
View Related
Domain Name Server (DNS) Type Questions
I'm rather new to hosting so I still don't get everything, but maybe you can help me. I am hosting a web page on a computer that is hooked into the same network as my personal computer. They are both hooked into an openBSD router, which has the connection to the internet. My recently purchased domain name is set to forward all requests directly to the computer with the website on it (named 'b2.') When you visit the domain from an outside computer it does this just fine, but when you try to access it from one of the computers on my network it does not work. From my computer you can not access the website from the domain, but you can still access it just straight through the local network (i.e. typing 'b2' directly into the address bar ) From the computer which is actually the host to the website, it is accessible neither way, though the local network option was working before. Does anyone know what the problem is and how I can fix it? Keep in mind that I really only understand the basics of web hosting, and terminology and stuff.
View Replies!
View Related
Redirect Www.domain.com To Domain.com
Can anyone help me in redirecting my site www.domain.com to domain.com since SSL is for domain.com Here is my htaccess Options -Indexes DirectoryIndex home.php index.php index.html index.htm Could you please add me the correct code to redirect www.domain.com to domain.com? Also, do i need to restart Apache for taking effect?
View Replies!
View Related
Domain Name Redirect
is it possible to register a domain name and just use it to re-direct to another domain without paying for hosting etc? for example if i want a standard url to point to a free [url] blog? how would i go about doing this?
View Replies!
View Related
Domain Name Redirect/masking
I'v been searching the internet for ways to redirect/mask a domain in Linux (Ubuntu) and everything points me to godaddy. The server is ssh there is no control panel on it. So if anyone knows a way I can redirect my domain name and mask it that would be great. For example domain1 points to domain2, but in the address bar it shows domain1.
View Replies!
View Related
Redirect Domain To Www
The thing is that we have a dedicated server at our company hosting several domains, and right now you can access them both with the www prefix or without it, but there is no redirection in case you access without it, and this has negative impact with SEO related stuff. I have the rewrite apache module enabled (I tested with a script I found on the net), and I also tried a test configuring a single domain including some code about redirection. Right now I'm getting a nice "500 Internal Server Error" This is the code in .htaccess Code: Option +FollowSymlinks RewriteEngine On RewriteCond %{http_host} ^mydomain.com [NC] RewriteRule ^(.*)$ [url] (mydomain.com is, obviously, a replacement for the real domain in both cases)
View Replies!
View Related
Error: Array Type Has Incomplete Element Type
When i try to install BotNET 1.0 on my dedicated, i got this error : root@leet [~/botnet/BotNET-1.0]# . install.sh Compiling source code . . . In file included from src/main.c:9: src/../include/bot.h:43: error: array type has incomplete element type src/../include/bot.h:57: error: array type has incomplete element type src/../include/bot.h:89: error: array type has incomplete element type src/main.c: In function: src/main.c:146: error: type of formal parameter 1 is incomplete Here is my install.sh file: Code: #!/bin/bash # BotNET installation script. # If this script causes problems, try "make all" instead. # Usage: . install.sh cc="/usr/bin/gcc" echo "Compiling source code . . ." bot=`$cc src/main.c src/launch.c src/memo.c src/seen.c src/parse.c src/help.c src/log.c src/info.c -o bin/bot -pthread || (echo 1)` botnet=`$cc src/botserv.c -o bin/botserv || (echo 1)` if [ "$bot" != "1" ]; then echo "Installation complete." echo "Executables will be found in bin/" else echo "Errors encountered during compilation!" fi My OS is centOs 5.x Kernel : Linux 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 i686 i386 GNU/Linux * I have tried all other way to install (make all) and other *
View Replies!
View Related
Redirect Domain.com/admin To [url]
How do i forward requests to [url] to [url]? I have usermin control panel running at https port 10000, but hosted customers have trouble rememembering the port address, hence i want to provide simplified url to all hosted customer so that whenever a customer types [url]or [url]he is forwarded to [url]. I have a number of domains hosted and need a global mod_rewrite rule or whatever that can be specified once in my apache httpd.conf file and it should work for all hosted domains on my server.
View Replies!
View Related
301 Redirect Entire Domain With IIS
I always use Apache and it's easy to redidrect an entire domain in the htaccess. Code: RewriteCond %{HTTP_HOST} ^www.domain1.com$ RewriteRule ^(.*)$ [url]$1 [R=301,L] For a site I'm working on I need to achieve the same thing with IIS but have no idea how to and the technician claims it can't be done. Surely, that's not the case. Any ideas? By the way I want the exact same effect as the above not just a generic redirect that sends everthing to the home page of the new domain.
View Replies!
View Related
DNS / Bind - Easiest Method To Redirect A Domain To Another
I've got two domains (for sake of example, domain A and domain B). Domain A resolves correctly to my web server. Domain B is just sitting collecting dust. I didn't set these domains up, a previous programmer at my job did. How do I configure resolv.conf, named.conf and the zone file(s) correctly to have domain B redirect to domain A? I've already set up httpd.conf so that any requests for the host name of domain A will redirect. e.g. [url]-> [url] I just need the DNS part of this fixed (that I'm a bit of a noob at). Do I have to do something like this in named.conf: Code: zone "domaina.com" { type master; file "/var/named/domaina.com.hosts"; }; zone "domainb.com" { type master; file "/var/named/domaina.com.hosts"; }; Then in the domaina.com.hosts zone file add an alias like this? Code: domainb.com. IN CNAME domaina.com. Or do I need to create a domainb.com.hosts zone file with basic info emulating domaina.com.hosts zone file, and add its entry in named.conf?
View Replies!
View Related
DNS / Bind - Easiest Method To Redirect A Domain To Another
I've got two domains (for sake of example, domain A and domain B). Domain A resolves correctly to my web server. Domain B is just sitting collecting dust. I didn't set these domains up, a previous programmer at my job did. How do I configure resolv.conf, named.conf and the zone file(s) correctly to have domain B redirect to domain A? I've already set up httpd.conf so that any requests for the host name of domain A will redirect. e.g. [url] I just need the DNS part of this fixed (that I'm a bit of a noob at). Do I have to do something like this in named.conf: Code: zone "domaina.com" { type master; file "/var/named/domaina.com.hosts"; }; zone "domainb.com" { type master; file "/var/named/domaina.com.hosts"; }; Then in the domaina.com.hosts zone file add an alias like this? Code: domainb.com. IN CNAME domaina.com. Or do I need to create a domainb.com.hosts zone file with basic info emulating domaina.com.hosts zone file, and add its entry in named.conf?
View Replies!
View Related
Only Domain Reg, Email Forward And Url Redirect Wanted
I need a company to register my domain, and then forward emails and urls to my actual site that is somewhere else. I don't need any actual web hosting or email pop (at the moment). My main requirement is reliability. The company I currently use bounces some email to me and forwards other email to a black hole. They're also not replying to my mail, so it's time to leave. BTW, this is a company that has generally excellent reviews.
View Replies!
View Related
IP Address Vs. Domain Name
I'm moving from shared to dedicated hosting. I've added an account and used ftp and phpmyadmin to copy over a WordPress installation. I would like to test this installation before re-directing the name servers, but I'm having no luck. If I browse to 12.34.567.890/whm, I get the Web Host Manager. If I browse to 12.34.567.890, I get the "Great Success! Apache is working on your cPanel and WHM server" page. If I browse to /anything_else, (e.g., /wp-admin, /index.php, etc.) I get a 404 message. Is there any way I can test this application (and others) using the IP address, or am I going to have to change the DNS and navigate to mydomain.com?
View Replies!
View Related
Domain Vs Web Address
thinking about adding web hosting to my reseller account. Can anyone tell me the difference between an IP address and a domain. If they are different who actually owns the domain and who owns the IP address?
View Replies!
View Related
Domain Name Converts Into An IP Address
I have a website and i wanted to change the homepage for it. I had this in my .htaccess file: redirect index.php [url] Now, i installed wordpress and i changed the line in .htaccess file to: redirect index.php [url] And all of a sudden the domain name on the homepage is converting into the IP address. To try click this link [url]and you will see it converts into a IP. But if i click the "forum" link ( existed from old site) it starts working fine. I have reverse DNS entries setup and everything was working fine until this change,
View Replies!
View Related
DDoS The IP Address But Not Domain
I checked on /server-status and it has tons of ClientVHostRequest {serverip } defaultGET / HTTP/1.0 However, the default web page is blank. Now my site has been DDoSed for the last 3 days. Does this mean they are attacking the site from the IP, because I do see many genuine access to the correct Vhost but no body should access the site via the IP. Especially... why is the client, my on server ip that accesses?
View Replies!
View Related
Can Your Hosting Address Be Seen When You Forward A Domain?
For example, if I forward my business domain abcproducts.com to my domain where I have my hosting, myname.com, is it possible for people to see where my business domain is forwarding to. Basically, I am doing a business website, but I don't want anyone to be able to see that it actually is forwarding to a folder on my main myname.com where I have my hosting. I am masking it, so it will only show abcproducts.com, but I am wondering if even the "tech saavy" has tools to figure this out. I just don't want anyone to be able to see this. Like, I know how sites like DNSreport.com show all kinds of stuff on the domain. Is there something like this that people can use to see if domains forward?
View Replies!
View Related
Registering Domain, Which IP Address Should I Provide
I want to register a domain from some organization. During the registration the registrar asks me to provide a primary DNS with an IP address and a secondary DNS with an IP address. Because I have already a website with a godaddy hosting, I want that may new domain also points to my godaddy hosting. So I have to provide the DNS of my godaddy hosting to the domain registration company. But my question is; Which IP address do they require? Do they ask me the IP address of my DNS’s (NS43.DOMAINCONTROL.COM, NS44.DOMAINCONTROL.COM) or the IP address of the server on which my website is running.
View Replies!
View Related
Change Domain To Another Ip Address On My Server
i have a dedicated server with 5 usable IP's in range xxx.242 to xxx.246 xx.xxx.120.242 <-- main shared IP xx.xxx.120.243 xx.xxx.120.244 <-- in use by my nameservers xx.xxx.120.245 <-- in use by my nameservers xx.xxx.120.246 When i select in WHM "Change Site's IP Address " and the account i want to change it shows me a drop down menu with the ip's of the nameservers AND the xx.xxx.120.243 If i select that one the domain in the account shows the apache default page only inmediately. I don't know why the xx.xxx.120.246 ip doesn't show or why the nameserver ip's appear because they are in use. Do i need to wait for propagation or is this an error?
View Replies!
View Related
Sub Domain On Different Server Exim Unroutable Address - WHM/cPanel
I have two servers running cPanel/WHM, with BIND and Exim. I have my main domain running on one server (gizmo.mywebhost.net) and wish to host a seperate helpdesk on a subdomain support.mydomain.com (on a second server, stripe.mywebhost.net). The subdomain mail account test@support.mydomain.com works fine with hotmail, i can send and reveive between my stripe.mywebhost.net server and hotmail without any issue. The problem is when i try and send mails from accounts hosted on gizmo.mywebhost.net, to the subdomain server stripe.mywebhost.net, i get the following unroutable address error fired back by the local exim process: This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: test@support.mydomain.com Unrouteable address ------ This is a copy of the message, including all the headers. ------ ......
View Replies!
View Related
URL Redirection Without Changing The Address In The Address Bar
I want to redirect a website to a particular URL so that the address bar shows the same URL and not the destination URL. I know it is possible via URL masking, however, I want it in such a way that whenever somebody clicks on any link in the website, the address bar should still show the original URL. To put it in simple words, Suppose I want to redirect [url] to [url]. Now if there is a link named contact/index.htm and somebody clicks on it the address bar should display [url]and not redirect to [url] How can it be possible using URL Rewrite method in .htaccess file?
View Replies!
View Related
Visitors Limits
I want to add visitors limits for my website. Is any way to i do that ? For example i want only 50 visitors to be the same time on my website and if come more to they get a message the website is full, please come back another time. Is any script or other way to do that?
View Replies!
View Related
How Do I Setup A New Ip Address As My Server's Main Ip Address
I just bought a new ip address and want to setup this new ip as my server's main ip, making the 'existing main ip' as the secondary ip. Which means, this new ip will be the server's default ip address for all services, including when connecting to other server. I'm using CentOs 4.5 and swsoft's panels: HSPcomplete & Virtuozzo Power Panel, and Webmin.
View Replies!
View Related
98)Address Already In Use: Make_sock: Could Not Bind To Address [::]:443
The problem usually goes like this: - I can't access the webserver - I'll try to restart httpd, and I'll get Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:443 To fix this, I run [root@www1 ~]# lsof -i tcp:443 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME perl 11307 apache 4u IPv6 476943447 TCP *:https (LISTEN) There is always leftover process that is causing the restart to fail. Once i force kill the process, I am able to restart httpd properly. Now it is ok if this just occurs once in a while, but this problem keeps repeating itself almost everyday at 4am server time (cron time?). What can I do to permanently fix this?
View Replies!
View Related
Cannot Browse Using IP Address But Can Browse Using Domain Name
i have some problem browsing our website using it's IP address. Does anyone knows why is this so? It's being hosted by godaddy.com by the way. Here are the scenarios below. scenarios: (hosted by godaddy.com) 1. [url]- can browse 2. [url] - cannot browse with 403 forbidden error. (hosted by another hosting company) 3. [url] (pointing to IP address: 72.167.131.9) - also cannot browse with 403 forbidden error. The owner is trying to contact godaddy atm,
View Replies!
View Related
Block All Visitors From Country X
I have experianced a number of attacks all from a specific country. I would like to completely block access to all users from that country. I realize that this is not fool proof because people from that country could still use a proxy. I also realize that people in that country that are not hackers would not be able to access my web site but for the time being I still want to put this in place. I use Linux / Cpanel / Apache. I have iptables installed. Is there any way I can block all access to people from the problem country?
View Replies!
View Related
Dynamic IP Addresses, Counting Visitors Etc.
Many ISPs assign dynamic IP addresses and I'm wondering if the following will be a problem for my site if it for example had 5 million all-time unique users: So if someone new comes to my site with an IP that has already been in use by someone else who visited my site, that user will use the same databases with the previous user and won’t even be considered a unique in user. Do dynamic ISP given IPs work so that someone else gets that IP once you release it?
View Replies!
View Related
|