How Do I Redirect Visitors, Who Type In My IP Address, To My Domain

Nov 5, 2009

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 4 Replies


Htaccess - Redirect All Visitors Except Certain IP Address

Feb 25, 2008

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://

and have anyone from an IP address of to just access/view the regular site, so not to be redirected.

how I can do this in my .htaccess file?

View 4 Replies View Related

How2 Redirect Visitors To A Mobile Subdomain

Aug 20, 2008

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 3 Replies View Related

How To Redirect Visitors To A Subpage Depending On The Url They Entered

Nov 5, 2007

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 7 Replies View Related

Moved Content From Root To Subdomain And Need To Redirect Visitors

Mar 16, 2007

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 4 Replies View Related

New Type Of Spam Emails (same FROM And TO Address)

Dec 10, 2008

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, is sending email to 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 10 Replies View Related

Apache :: Type Full Address With Port Number?

Jan 30, 2014

Have to type the full address with port number....

View 4 Replies View Related

Getting Loads Of Unique Visitors From Italy On A Domain Not Used

Jan 19, 2009

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

View 8 Replies View Related

Redirect To New Address

Jan 11, 2008

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:
now this file located on:

View 10 Replies View Related

Redirect Subdomain To IP Address

Apr 23, 2008

I have 2 dedicated server.

on server a I created an account.

on this account I created a subdomain named

on server b I created a new account with dedicated IP .

now, I want redirect to my dedicated IP on server b .

I have cpanel on both server .

I changed the A record of IP of in , but this is not work

View 1 Replies View Related

Create Dns To Redirect To Some Ip Address

Jun 17, 2008

Not sure where this thread so go, so posted it here! Cause bunnies do not fear mods somedays.


So i wanted to setup say a dns bunny.somedomainihaveisuppose.dom to say my ip say . , how can you do that in cpanel say or say in whm panel, and is there any script maybe like say 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 14 Replies View Related

Redirect Subdomain To IP Address

Jun 26, 2008

on pointing a sub-domain to an ip address.

I would like to have [url]point to my hope IP address which is static.

View 2 Replies View Related

Redirect A Subdomain To External IP Address

Oct 30, 2008

Is there any way to redirect a subdomain on a machine A to point to an IP adress on a second machine B.

View 11 Replies View Related

Domain Name Server (DNS) Type Questions

Oct 8, 2007

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 3 Replies View Related

Plesk 12.x / Linux :: Cannot Change Hosting Type For A Domain

Mar 1, 2015

I have a "little" problem. I can not change the hosting type for a domain.

There is the error:
"Internal error.
ERROR: Call to a member function getRootPath() on a non-object (Abstract.php:141)"

What am I doing wrong?

View 4 Replies View Related

Plesk 12.x / Linux :: Domain / Subdomain - Hosting Type?

Nov 28, 2014

Following configuration given:

Abo with "" - Hosting Type - Webspace (with E-Mail Services)
Subdomain "" - Hosting Type - Forward

Customer asked us to activate Forward for " "to other Domain for 2 weeks - but as soon as a Subdomain points on a Domain - I can NOT change the Hosting Type anymore ... WHY???

If I want to change Hosting Type from Hosting to Forward for some weeks - it always deletes the whole Webspace for the Domain ... ?!?

1) Why can't I change Hosting Type when a Sub-Domain is created?
2) Why can't I tell Plesk to change Hosting Type WITHOUT deleting the whole Webspace ...

View 1 Replies View Related

Plesk 12.x / Linux :: Creating Lot Of Email Address With Redirect And Send Copy To

Nov 28, 2014

Under plesk 12.0.18, I would like to create thousand email address with redirect and send copy to. Its a long work to do.

Is there a solution to create all these email via an import csv, xls or else ?

View 2 Replies View Related

Error: Array Type Has Incomplete Element Type

Dec 15, 2008

When i try to install BotNET 1.0 on my dedicated, i got this error :

root@leet [~/botnet/BotNET-1.0]# .
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 file:
# BotNET installation script.
# If this script causes problems, try "make all" instead.
# Usage: .


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/"
echo "Errors encountered during compilation!"

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 1 Replies View Related

Domain Name Redirect

Feb 24, 2009

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 8 Replies View Related

Redirect Domain To Www

May 20, 2009

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

Option +FollowSymlinks
RewriteEngine On
RewriteCond %{http_host} ^ [NC]
RewriteRule ^(.*)$ [url]
( is, obviously, a replacement for the real domain in both cases)

View 9 Replies View Related

Redirect My Domain

Dec 21, 2008

I host my academic website at my university. I'd really like to point my domain to it.

Can anyone recommend me a free redirect DNS service (Assuming that's what I need)

View 2 Replies View Related

Domain Name Redirect/masking

Jun 19, 2009

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 4 Replies View Related

301 Redirect Entire Domain With IIS

Mar 23, 2009

I always use Apache and it's easy to redidrect an entire domain in the htaccess.

RewriteCond %{HTTP_HOST} ^$
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 2 Replies View Related

Redirect Domain & SSL Certificates

Feb 6, 2008

I just bought a SSL certificate for my domain, let say my domain is, how do i redirect to [url]when people type on their browser? or if someone type then it will redirect to [url]

View 4 Replies View Related

Redirect To [url]

Feb 22, 2007

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 14 Replies View Related

301 Redirect Without Displaying Different Domain

Mar 10, 2007

to do a 301 redirect from domainA to domainB but continue displaying DomainA's url when someone goes through.

Right now I'm doing:

redirectMatch 301 ^(.*)$ [url]
redirectMatch permanent ^(.*)$ [url]

How do I accomplish this?

View 4 Replies View Related

CPanel Redirect Parked Domain

Aug 12, 2008

Is it possible to redirect parked domains in cPanel to a different URL? I want to redirect each domain to a different url. Can this be done via cPanel or .htaccess?

View 1 Replies View Related

Redirect The Domain + Site Path

Jan 17, 2007

Is there a way that I could redirect total urls? By that I mean when someone goes to they get redirected to

Im running apache 1.3

View 8 Replies View Related

Copyrights 2005-15, All rights reserved