How to avoid losing traffic going to the sub-pages?

RealNames

Verified User
Joined
Feb 22, 2004
Messages
50
I have a domain I purchased which is on domain pointing to another site.

The domain (which was previously owned by someone else) has a few pages (in addition to its old index page) which pages are listed in the search engines and get some traffic.

Problem is Domain Pointing seems to only work as far as the domain name itself goes. Any traffic going to pages in the website end up to page not found errors.

Is there any way to get all the traffic going to the website it points to, rather than lose so much of it?
 
Hello,

One easy fix would be to create your own 404 error page to automatically forward them, or just to show whatever you want.

Sample forwarding in html:
PHP:
<html>
<head>
<script language="Javascript">
location.href="http://whereveryouawant.com";
</script>
</head>
<body>You are being redirected</body>
</html>
John
 
DirectAdmin Support said:
Hello,

One easy fix would be to create your own 404 error page to automatically forward them, or just to show whatever you want.

Sample forwarding in html:
PHP:
<html>
<head>
<script language="Javascript">
location.href="http://whereveryouawant.com";
</script>
</head>
<body>You are being redirected</body>
</html>
John

Huh? Are you saying take the domain off of Domain Pointing and instead make a site for it and use your htmp example as the index page? Obvioulsy that code would not run if it stays on Domain Pointing, right?

Sorry, I am confused and not very knowledgable on this kind of technical stuff.
 
The index page could redirect to your desired page and the code above in your custom error pages

Yes you'd have to take it off pointing and set it up as a domain in it's own right :)
 
Originally posted by matrixx The index page could redirect to your desired page and the code above in your custom error pages. Yes you'd have to take it off pointing and set it up as a domain in it's own right :)

If I redirect either using domain forwarding, redirection, domain pointing or htaccess it only sends traffic going to the domain and index page but has no effect on sub-page traffic, which was the purpose of this thread.

If I then put htaccess in the site pointed or forwarded to it does no good as the sub-page traffic will never arrive there in the first place due to the above.

BTW, I do not know the names of the subpages used by old owners website, so would need to use a wildcard name, can that also be done?

Do you mean put that html code into an htaccess file, and also put a redirect inside the same htaccess file?

Actually I once tried putting a redirect into htaccess along with the error404 and the net effect was neither of them worked in the same htaccess file, as the htaccess file I experimented with would only do one or the other but not both.

Next I even tired making 2 seperate htaccess files, one with a redirect and one with error404, but that also failed as they both required the same name, right?

I also did not know html code works at all within htaccess file, does it? Sorry but VERY confused, even more now than ever.
 
Last edited:
RealNames said:
If I redirect either using domain forwarding, redirection, domain pointing or htaccess it only sends traffic going to the domain and index page but has no effect on sub-page traffic, which was the purpose of this thread.
It works fine for me.

For, example, enter into your browser:

http://domains.nobaloney.net/foobar

It'll get rewritten to:

https://secure.ezsecureusa.com/nobaloney/domains/foobar

which doesn't exist, so you'll get an error page.

We'll get back to the error page in a moment, but in the meantime, let's look at the .htaccess file that caused the redirect.

It's in the domains.nobaloney.net public_html directory, and it's only one line:

Redirect / https://secure.ezsecureusa.com/nobaloney/domains/
BTW, I do not know the names of the subpages used by old owners website, so would need to use a wildcard name, can that also be done?
Not to the best of my knowledge.

But now it's time to get back to that error page:

Instead of using a default error page, you can create an error page that will then redirect to your home page.

Jeff
 
Back
Top