Unstoppable Domains โ€” AI Assistant

Awstats question

NamecheapNamecheap
Watch

yilduz

Your face is regfee!Established Member
Impact
30
I want to set things up so that one domain will forward to another domain (for the sake of ease, we'll say domain1.com is forwarding to domain2.com). The thing is, though, I want the awstats for domain2.com to have domain1.com in the "connect to site from" every time it forwards to domain2.com. How do I do that?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I think the easiest way to do that would be to make domain1 forward to domain2 after first landing on domain1.

So when someone types in domain1.com, an html (or php, or whatever) page redirects them to domain2. That way, they are coming from domain1.com directly.

Does that make sense? (I'm not the best at explaining myself. :p )
 
1
•••
from what i understand yilduz , you want domain2.com will show awstats of domain1.com when you type www dot domain2 dot com?! you can redirect domain2.com to the directory awstates/ of domain1, depend on your registrar and hosting provider if it is not possible with nameservers , then look if they provide masked forward...

it will help if you post your registrar and hosting provider, if not you can pm them to me i will help you

Tv
 
1
•••
Jake said:
I think the easiest way to do that would be to make domain1 forward to domain2 after first landing on domain1.

So when someone types in domain1.com, an html (or php, or whatever) page redirects them to domain2. That way, they are coming from domain1.com directly.

Does that make sense? (I'm not the best at explaining myself. :p )

I remembered i tried this before, and it works. Add the <META HTTP-EQUIV="Refresh"> into the landing page of domain1 and it will redirect to domain2.
 
1
•••
Using .htaccess file.

1. set NS (name server) for domain1.com go to domain1.com
2. create blank site with blank index.html file.
3. create .htaceess if it's there already.
4. copy and paste following code onto .htaccess file.

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.domain2.com/$1 [R=301,L]

be sure to change "domain2.com with your real domain name.

If your hosting co. do not have Mod-Rewrite turned on,
you can ask your host to turn it on or do following.

1. set NS (name server) for domain1.com go to domain1.com
2. create blank site with blank .html file.
3. copy and paste following code onto index.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv=Refresh content="0;url=http://www.domain2.com">
</head></html>

<!--

-->

be sure to change "domain2.com with your real domain name.
 
1
•••
-TV- said:
from what i understand yilduz , you want domain2.com will show awstats of domain1.com when you type www dot domain2 dot com?! you can redirect domain2.com to the directory awstates/ of domain1, depend on your registrar and hosting provider if it is not possible with nameservers , then look if they provide masked forward...

it will help if you post your registrar and hosting provider, if not you can pm them to me i will help you

Tv
If I'm understanding what you're saying, I think I'm saying the same thing.

I'm going to give what copper said a try. If that doesn't do what I'm thinking, I'll post here again. Rep coming to everyone that has responded. Thank you very much.

copper said:
Using .htaccess file.

1. set NS (name server) for domain1.com go to domain1.com
2. create blank site with blank index.html file.
3. create .htaceess if it's there already.
4. copy and paste following code onto .htaccess file.

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.domain2.com/$1 [R=301,L]

be sure to change "domain2.com with your real domain name.

If your hosting co. do not have Mod-Rewrite turned on,
you can ask your host to turn it on or do following.

1. set NS (name server) for domain1.com go to domain1.com
2. create blank site with blank .html file.
3. copy and paste following code onto index.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv=Refresh content="0;url=http://www.domain2.com">
</head></html>

<!--

-->

be sure to change "domain2.com with your real domain name.
I can't seem to be able to make a .htaccess file in the folder for the first domain.

edit 2: Okay, it redirects and everything, but it's not doing the awstats thing.

Where it says "Connect to site from" in awstats, I want domain1.com to appear every time it's used to forward to domain2.com.
 
Last edited:
0
•••
yilduz said:
edit 2: Okay, it redirects and everything, but it's not doing the awstats thing.

Where it says "Connect to site from" in awstats, I want domain1.com to appear every time it's used to forward to domain2.com.

How often awstats reading log file?
It may not show up instantly depend on how often it reads log file.
 
0
•••
copper said:
How often awstats reading log file?
It may not show up instantly depend on how often it reads log file.
I don't know, but I click the "Update now" button pretty often.
 
0
•••
Spaceship
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back