RE: [PHP] Search Engines and PHP
| From: | Ernest E Vogelsinger | Date: | Tue, 23 Jan 2001 08:46:05 +0000 |
| Subject: | RE: [PHP] Search Engines and PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36151@lists.php.net to get a copy of this message | ||
At 09:23 23.01.2001, Kristofer Widholm said:
--------------------[snip]--------------------
>>If you want to be totally searchengine-safe, do not use variables on the
>>url, do not rely on cookies and do not rely on POST variables for the pages
>>you want to have the searchengine spider.
>
>How the heck do you build a dynamic site without URL variables,
>cookies, or POST variables?
--------------------[snip]--------------------
You could, for example, use a 404 handler. Assume your site,
www.yoursite.com, has an existing virtual directory /myapp. However this
directory is empty, and directory browsing id forbidden. For this folder
you setup a 404 handler that will be called by the web server whenever a
folder or page cannot be found.
Then you format your urls like this:
http://www.yoursite.com/myapp/<PHPSESSID>/<theapp>.php/param1/param2/param3/
This URL does not exist and will be passed to the 404 handler. Within the
404 handler, parse the url, extract the session id and parameters, and
execute the <theapp>.php file.
Just as an example,
...ebird
>O Ernest E. Vogelsinger
(\) http://www.1-at-web.at/
^ ICQ# 13394035