PDA

View Full Version : HTTP 404 Error when Viewing Whois Report



DotKhoza
05-03-2006, 06:34 PM
Hi,

I included the Whois script into a php page with much success (Thanks to some previous posts e.g http://www.dev-forums.com/index.php/topic,180.0.html and http://www.dev-forums.com/index.php/topic,175.0.html). I ran a few searches without problems.

The trouble started when I wanted to View the whois Report on one of the searches I made , and another and another....)

I keep getting a HTTP 404 Error whenever I do this. all the other links are working fine.

I also ran the NS Validator and it works okay. I am able to see the report generated on a registered domain in this way.

What could be the problem? Did I overlook something? Why can I see it in NS Validator and not on the results on the script?


It was working okay earlier.

Cheers

DotKhoza
05-03-2006, 09:00 PM
I noticed that when I move my mouse over the "View Whois" hyperlink, the URL that is displayed in the Status Bar is non-existent.

I modified the "action" in the Search Bar template and replaced whois.php file because I included it on another file called domains.php. (like in http://www.dev-forums.com/index.php/topic,175.0.html)

What happens is that when I click the "View whois" it takes me to a folder with the domains.php but it looks for whois.php.

When I substitute /whois.php with /domains.php in the address bar I can see the whois report.

How/where can I change the link for this URL so that it point it to the right page? I tried a few things but none of them worked so far.

Patrick
05-03-2006, 09:43 PM
How/where can I change the link for this URL so that it point it to the right page? I tried a few things but none of them worked so far.


When using a non-standard setup you will have to use your own custom URL in the templates instead of [[whois-reporturl]]. Something such as yourpage.php?page=WhoisReport&domain=[[domain]]&ext=[[ext]] .

While it is possible to include the script within another page, it is recommended that you do not include the script and instead use the script's Custom Header/Footer Files (on the templates page). If you choose to not follow this advice, you will have to modify the URLs and paths in any applicable templates that require such items.

DotKhoza
05-04-2006, 09:05 AM
Thanks a lot!



When using a non-standard setup you will have to use your own custom URL in the templates instead of [[whois-reporturl]]. Something such as yourpage.php?page=WhoisReport&domain=[[domain]]&ext=[[ext]]

I changed it as you suggested and it now works well.

Thank you for your support!