Re: Variable URLS?
| From: | Ray Black III | Date: | Fri, 02 Jun 2000 15:39:11 +0000 |
| Subject: | Re: Variable URLS? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-905@lists.php.net to get a copy of this message | ||
Assuming you don't want to use sessions...
Well, it wouldn't work quite like that... You still have to specify a
filename in the path. I handle that by doing a redirect on the index.php
page to my full URL (http://www.mydomain.com/site.php/133). The subsequent
stuff after the filename is available as $PATH_INFO. My approach also
changes the extention to something else to keep it from being obvious
(http://www.mydomain.com/my.site/133 where my.site is the php file)...
-r3-
----- Original Message -----
From: Ryan Jameson <ryan@ribbett.com>
To: <php-general@lists.php.net>
Sent: Friday, June 02, 2000 11:29 AM
Subject: [PHP-GENERAL] Variable URLS?
> Hi guys,
>
> I'm hunting for a search engine solution. What I'm looking for is a way to
> pass variables from the URL without them looking like variables. For
> instance, I'd like to set up http://www.mydomain.com/133
> to be the same as
> http://www.mydomain.com/index.php3?ID=133 and so on. Any ideas?
> What have
> you all been doing for search engines? I have a hunch that the above is
> possible but I haven't a clue how to make it happen.
>
> rj
>
> Ryan Jameson
> Ribbett New Media
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net