PDA

View Full Version : redirect to external domains


sf44
07-03-2004, 08:41 AM
I have read previous threads, but i did not help me. I have download phpdig ver. 1.8.0

I need to index redirections to external domain but it does not function.

<meta http-equiv='refresh'content='0;url=http://external_domain.com/?something1/something2>

I have set up PHPDIG_IN_DOMAIN and also phpdigComapreDomains function.

The problem is that does not exists
links in http://external_domain.com/ like http://external_domain.com/?something1/something2

and

http://external_domain.com/?something1/something2
need to be indexed as one special page.

Any ideas?

Slavomir

vinyl-junkie
07-03-2004, 09:47 AM
Welcome to the forum, Slavomir. :D

PhpDig will not index a domain that is external to the one you're currently indexing. What you'd need to do is index that content separately, with a search depth of zero.

Hope this helps. :)

sf44
07-03-2004, 10:12 PM
I do not understand.

phpDig is possible to index external sites if I set up define('PHPDIG_IN_DOMAIN',true); in config and also phpdigCompare Domain function.

Maybe the problem is that my redirect link is type

http://domain.com/?something/something2

Ordinary redirection - I have tested with OK - is type

http://domain.com/file.htm?something

Slavomir

vinyl-junkie
07-03-2004, 10:48 PM
The way you worded your original post, it sounded like the redirected page is to a domain other than the one you're currently indexing. That's not the case?

If you're wondering why phpdig won't index something whose redirection is coming from a meta refresh, there's nothing in the documentation that says phpdig will follow such a link. What you can do though to get that page indexed is just specify its full path in your index administration process. Or else you can just include a normal link to it on your site so phpdig will pick it up.

Hope this helps. :)

sf44
07-03-2004, 11:56 PM
Please look also at the thread 663 - problems with redirection. It is possible to index external domains and redirections.

The problem is, that I am no able to specify its full path in my index administration process, because the site is special - it is like database with no links.

I need to index somethink like this
www.doman.com/?1
www.domain.com/?2
...
www.domain.com/?20000

There is no possibility to index it manually.
But I have built special file with all urls.

As I have found, the problem is in phpdigGetSiteFromUrl function, which is not able to handle special urls.

$pu = parse_url($url);

http.doman.com/?test/test - is not regular url, because there is no regular path and no regular file.

Slavomir.