Re: [PHP-DB] Dynamic sites, to appear static...?
Sorry I'm a bit late with this, I couldn't remember where I'd seen this: http://www.zend.com/zend/spotlight/searchengine.php has an article on getting around this. I've used it and it's pretty easy to do. HTH, -Lisi At 11:18 AM 9/4/03 +0100, [EMAIL PROTECTED] wrote: I've been building web sites that use a database backend for some time now. I typically use the format. http://www.mysite.com/index.php?page=contact http://www.mysite.com/index.php?page=home http://www.mysite.com/index.php?page=aboutus etc My most recent job wants to use differnt pages, so the search engines will pick up the url's as clearly defined, and not dynamic, as I normally do... They way id do things is great (normally) as it allows the Admin person to add as many pages as they like, without having to pay me to create it for them. But now if my most recent client wants to create a new page, I'll have to do it for them... Is there a way I can still admin the pages, and allow my client to add/delete pages, but use static links , without '?page=home' etc... I hope I've made sence... I've discused this with my client, and he said a friend of his claimed 'that webserver software should have a module or plugin that will do this' I've never heard of that, have I been living under a rock? * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *** -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Dynamic sites, to appear static...?
On 04 September 2003 11:18, [EMAIL PROTECTED] wrote: > I've been building web sites that use a database backend for > some time > now. > I typically use the format. > http://www.mysite.com/index.php?page=contact > http://www.mysite.com/index.php?page=home > http://www.mysite.com/index.php?page=aboutus > etc > > My most recent job wants to use differnt pages, so the search engines > will pick up the url's as clearly defined, and not dynamic, as I > normally do... > Is there a way I can still admin the pages, and allow my client to > add/delete pages, but use static links , without '?page=home' etc... > > I hope I've made sence... > I've discused this with my client, and he said a friend of > his claimed > 'that webserver software should have a module or plugin that > will do this' > I've never heard of that, have I been living under a rock? Not even a module (well, except for php!) or plugin. If you're using Apache as your Web server with mod_php, anything looking like path information following the script name is passed to your script in $_SERVER['PATH_INFO']. Take a look at, for example: http://www.lmu.ac.uk:8082/lco/php/support.php/visitors/welcome Note the position of support.php in that URL -- this URL is processed by running support.php with $_SERVER['PATH_INFO'] set to '/visitors/welcome', which the script decodes to decide what it actually needs to display. There's nothing particularly special in my httpd.conf file to make this work -- the relevant section is simply: AddType application/x-httpd-php .php Order allow,deny As a refinement, if you don't want people to see the .php on the script name, so that the URL could be (say): http://www.lmu.ac.uk:8082/lco/php/support/visitors/welcome you can tweak this to: AddType application/x-httpd-php .php DefaultType application/x-httpd-php # or ForceType if you prefer Then you either need a relevant AliasMatch or Rewrite so the above still gets to call support.php, or you simply upload all your scripts to the server with their bare name to match. I believe IIS is capable of passing PATH_INFO information, too, if you set it up right, but as I don't use it I can't be sure (or tell you how it might work!). Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Dynamic sites, to appear static...?
Hi I think search engines follow dynamic links so long as they are there to see. http://www.google.com/search?q=sm_red+compsol&btnG=Google+Search&hl=en&lr=&i e=UTF-8&oe=utf-8 for an example of one of mine. There was also an article on sitepoint about apache having aa address where it is of the form site.com/somefile/dynamicStuffHere where anything after somefile is dynamic parametrs. cant remember much more, sorry... any Apche experts out there? Peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04 September 2003 11:18 To: [EMAIL PROTECTED] Subject: [PHP-DB] Dynamic sites, to appear static...? I've been building web sites that use a database backend for some time now. I typically use the format. http://www.mysite.com/index.php?page=contact http://www.mysite.com/index.php?page=home http://www.mysite.com/index.php?page=aboutus etc My most recent job wants to use differnt pages, so the search engines will pick up the url's as clearly defined, and not dynamic, as I normally do... They way id do things is great (normally) as it allows the Admin person to add as many pages as they like, without having to pay me to create it for them. But now if my most recent client wants to create a new page, I'll have to do it for them... Is there a way I can still admin the pages, and allow my client to add/delete pages, but use static links , without '?page=home' etc... I hope I've made sence... I've discused this with my client, and he said a friend of his claimed 'that webserver software should have a module or plugin that will do this' I've never heard of that, have I been living under a rock? * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *** -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Dynamic sites, to appear static...?
I've been building web sites that use a database backend for some time now. I typically use the format. http://www.mysite.com/index.php?page=contact http://www.mysite.com/index.php?page=home http://www.mysite.com/index.php?page=aboutus etc My most recent job wants to use differnt pages, so the search engines will pick up the url's as clearly defined, and not dynamic, as I normally do... They way id do things is great (normally) as it allows the Admin person to add as many pages as they like, without having to pay me to create it for them. But now if my most recent client wants to create a new page, I'll have to do it for them... Is there a way I can still admin the pages, and allow my client to add/delete pages, but use static links , without '?page=home' etc... I hope I've made sence... I've discused this with my client, and he said a friend of his claimed 'that webserver software should have a module or plugin that will do this' I've never heard of that, have I been living under a rock? * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ***