PDA

View Full Version : Problems and solutions for PHPLD 3.03


SPD
04-21-2006, 07:05 PM
1. PHPSESSID and XHTML

PHP session is added to url if a browser or spiders do not support cookies.
You can easy check up it!

a. Switch off in your browser cookies.
b. Delete saved cookies
c. Check up links.

In links it will be added? PHPSESSID=xxxxxx

For solution of this problem it is necessary to add in .htaccess a following code:
php_flag session.use_cookies on
php_flag session.use_only_cookies on
php_flag session.use_trans_sid off
php_value url_rewriter.tags 0
php_value arg_separator.output &

2. If your links with ?PHPSESSID=xxxxxx or ?s=A or ?s=H or ?s=P were indexed spiders, add to index.php a following code:

$request_uri = $_SERVER['REQUEST_URI'];
if ( strstr($request_uri, "PHPSESSID") || strstr($request_uri, "?s=")) {
Header( "HTTP/1.1 404 Not Found" );
exit();
}

This code is necessary for deleting these links.
You can add this code after require_once ' init.php ';

3. All pages, receive 404 code.

200 OK
404 Not Found

Solution: Delete from index.php two lines:
// $http_status = (isset ($ _REQUEST [' httpstatus'])? intval ($ _REQUEST [' httpstatus']): 404);
// httpstatus ($http_status);

Additional Problems:

4. After deleting or moving of a link, a old link has a code 200 instead of 404 (Very important problem!!!)

5. Spiders index not existing links if in links there are conterminous parts. (Very important problem!!!)

6. Enter in a browser YourSite.com/YourDirectory/ + any not existing address. You receive 200 code instead of 404. (Very important problem!!!)

7. After registration some users cannot gain access to add links.
They can gain access only if will request the forgotten password.

Boby
04-21-2006, 10:24 PM
1, 2) This is fixed for 3.0.4, but with PHP code and not in the htaccess file. I know it would be better in htaccess, but if you are running on servers that don't support htaccess files you have a problem. Also, I am not sure what is when PHP is running in safe mode? Can you change this settings via htaccess without having a misconfiguration?

3) Fixed! There is also a fix for 3.0.3 ;)

4 & 5) I don't understand what you mean...give me examples please.

6) Fixed!

7) Fixed!

Thanks,
Boby

SPD
04-22-2006, 12:09 AM
Hi Boby,

For 4)

Before installation PHPLD on my site there were links as the link below:
Site.com/Directory/SubdirectoryName1/SubdirectoryName2.htm
It were static pages with the .htm extension

I have deleted these static pages and in this folder have installed PHPLD
Has added some subdirectories with like names.
I have seen that spiders began to find the deleted links in PHPLD
(200 code)

For 5) Some links are indexed Google as sequence of subdirectories with a wrong outline.

Example
Site.com/Directory/SubdirectoryName1/SubdirectoryName2/SubdirectoryName1/SubdirectoryName4

Best Regards,
SPD

Boby
04-22-2006, 01:52 AM
Well, in 3.0.4 all URL's that are not on the server or cannot be queried (simply everything that does not exist) will have the 404 header error. The next time Google will crawl your homepage .. it will exclude them from the index, keeping and updating the index only with the correct URL's.

Thanks!
Boby