RE: [PHP-WIN] changing querystring to fixed link

From: Date: Sun, 08 May 2005 02:31:03 +0000
Subject: RE: [PHP-WIN] changing querystring to fixed link
Groups: php.windows 
Request: Send a blank email to php-windows+get-25981@lists.php.net to get a copy of this message
It's none of PHP's business. It's relative to the web server.The following are the two solutions: 1) running PHP as CGI,just like Perl, so that you can handle the PATH_INFO with parameters, for example: change http://www.dictworld.com/search.php?q=hello&lang=en to http://www.dictworld.com/search.php/q=hello/lang=en or http://www.dictworld.com/search/hello/en (As a CGI program, you should specify the PHP.exe path like perl in every script, such as: #!/usr/bin/php ) 2) load module <mod_rewrite.c> in Apache.Then modify the httpd.conf and add this rule(for example): RewriteRule path/to/([a-z]+)_([a-z]+).html search.php?q=$1&lang=$2 so that you can access your web via http://www.dictworld.com/path/to/hello_en.html May these help you, Yong from Xerox, China 2005/5/8 -----Original Message----- From: Muhammad Imran [mailto:imran@sdpi.org] Sent: Thursday, May 05, 2005 12:14 PM To: php-windows@lists.php.net Subject: [PHP-WIN] changing querystring to fixed link How I can make different querystring in to fix string, so search engines can cache the pages. I'm using php+mysql+apace, any help much appreciated. Regards, Imran

« previous php.windows (#25981) next »