Re: [PHP] URL modification

2008-03-06 Thread Aschwin Wesselius
tedd wrote: At 4:46 PM + 2/25/08, Nathan Rixham wrote: It may be a good time to throw in this .htaccess which just palms eveything [not found] off to php [.htaccess] RewriteEngine On RewriteBase / DirectoryIndex handle.urls.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FI

Re: [PHP] URL modification

2008-03-06 Thread tedd
At 4:46 PM + 2/25/08, Nathan Rixham wrote: It may be a good time to throw in this .htaccess which just palms eveything [not found] off to php [.htaccess] RewriteEngine On RewriteBase / DirectoryIndex handle.urls.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d R

Re: [PHP] URL modification

2008-02-25 Thread Richard Heyes
I think this is a highly underused built-in feature. Agreed. I started to use it on my blog instead of a query string and pages reported by Google went up. -- Richard Heyes http://www.phpguru.org Free PHP and Javascript code -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] URL modification

2008-02-25 Thread Nathan Rixham
Daniel Brown wrote: On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: You could also forego the bit if you're willing to accept URLs like this: /rental.php/property/23425 I was waiting to see if anyone made mention of that while reading through the thread. I t

RE: [PHP] URL modification

2008-02-25 Thread Andrés Robinet
> -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Monday, February 25, 2008 11:37 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; php-general@lists.php.net > Subject: Re: [PHP] URL modification > > On Sat, Feb 23, 2008 at 6:27 A

Re: [PHP] URL modification

2008-02-25 Thread Daniel Brown
On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > You could also forego the bit if you're willing to accept URLs > like this: > > /rental.php/property/23425 I was waiting to see if anyone made mention of that while reading through the thread. I think this is a hi

RE: [PHP] URL modification

2008-02-24 Thread Xavier de Lapeyre
thnks Xavier Please consider the environment before printing this mail note. -Original Message- From: Nathan Rixham [mailto:[EMAIL PROTECTED] Sent: vendredi 22 février 2008 18:58 To: php-general@lists.php.net Subject: Re: [PHP] URL modification Richard Heyes wrote: >> H..

Re: [PHP] URL modification

2008-02-23 Thread Richard Heyes
/rental/property/23425 to: /index.php?mod=property§ion=rentals&propertyid=23425 Thinking about this a little, you still don't need mod_rewrite. "rental" could be a PHP script, forced through PHP with: ForceType application/x-httpd-php In either a .htaccess file or, if performance is an

Re: [PHP] URL modification

2008-02-23 Thread Richard Heyes
Let's say we've got 2.5 million users :: weight up 2.5 million files vs 1 rewrite rule map: /rental/property/23425 to: /index.php?mod=property§ion=rentals&propertyid=23425 You never mentioned this many users. Hence you're moving the boundaries somewhat. finally, do you honestly not use mod

Re: [PHP] URL modification

2008-02-22 Thread Per Jessen
Nathan Rixham wrote: > + rewrite is overkill for this, but long term it's worth implementing > and getting used to Completely agree. You've got to get to know url rewriting. I don't know how you can manage without it, even if it's far from always the right answer. /Per Jessen, Zürich -- PH

Re: [PHP] URL modification

2008-02-22 Thread Nathan Rixham
Richard Heyes wrote: + rewrite is overkill for this, but long term it's worth implementing and getting used to - think of the post as a pre-emptive strike on the inevitable question in a couple of weeks: "how can i make /profile/adam instead of profile.php?user=adam" Have a directory in your

Re: [PHP] URL modification

2008-02-22 Thread Richard Heyes
+ rewrite is overkill for this, but long term it's worth implementing and getting used to - think of the post as a pre-emptive strike on the inevitable question in a couple of weeks: "how can i make /profile/adam instead of profile.php?user=adam" Have a directory in your htdocs called /profile

Re: [PHP] URL modification

2008-02-22 Thread Nathan Rixham
Per Jessen wrote: Daniel Brown wrote: On Fri, Feb 22, 2008 at 10:53 AM, Per Jessen <[EMAIL PROTECTED]> wrote: Nathan Rixham wrote: > To use url's like http://domain.com/login/ as opposed to > http://domain.com/login.php you can take multiple approaches. > [big snip] > Seriously, this i

Re: [PHP] URL modification

2008-02-22 Thread Per Jessen
Daniel Brown wrote: > On Fri, Feb 22, 2008 at 10:53 AM, Per Jessen <[EMAIL PROTECTED]> wrote: >> Nathan Rixham wrote: >> >> > To use url's like http://domain.com/login/ as opposed to >> > http://domain.com/login.php you can take multiple approaches. >> > >> [big snip] >> > >> >> Seriously, t

Re: [PHP] URL modification

2008-02-22 Thread Daniel Brown
On Fri, Feb 22, 2008 at 10:53 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Nathan Rixham wrote: > > > To use url's like http://domain.com/login/ as opposed to > > http://domain.com/login.php you can take multiple approaches. > > > [big snip] > > > > Seriously, this is all overkill. Apache con

Re: [PHP] URL modification

2008-02-22 Thread Per Jessen
Nathan Rixham wrote: > To use url's like http://domain.com/login/ as opposed to > http://domain.com/login.php you can take multiple approaches. > [big snip] > Seriously, this is all overkill. Apache content negotiation does it all automagically and with minimal effort. /Per Jessen, Zürich

Re: [PHP] URL modification

2008-02-22 Thread Nathan Rixham
Richard Heyes wrote: H... made a quick look into it. Seems to be apache compatible. I'm designing a site to be hosted on an IIS Server. Does it still works there? On IIS I belive the default document is default.htm Though you should be able to modify this to whatever you please. On Apache

Re: [PHP] URL modification

2008-02-22 Thread Jason Pruim
On Feb 22, 2008, at 2:09 AM, Xavier de Lapeyre wrote: Hi all, I saw on some websites that modifies the links to access the webpages. Something like: http://www.example.com/login/ instead of http://www.example.com/login.php Does anyone knows how this works or how its call / which PHP library

Re: [PHP] URL modification

2008-02-22 Thread Per Jessen
Xavier de Lapeyre wrote: > Hi all, > > I saw on some websites that modifies the links to access the webpages. > > Something like: > http://www.example.com/login/ > instead of > http://www.example.com/login.php > > Does anyone knows how this works or how its call / which PHP library > performs t

Re: [PHP] URL modification

2008-02-22 Thread Richard Heyes
H... made a quick look into it. Seems to be apache compatible. I'm designing a site to be hosted on an IIS Server. Does it still works there? On IIS I belive the default document is default.htm Though you should be able to modify this to whatever you please. On Apache it is index.html or

RE: [PHP] URL modification

2008-02-22 Thread Thijs Lensselink
sts.php.net Subject: RE: [PHP] URL modification -Original Message- From: Xavier de Lapeyre [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 2:09 AM To: php-general@lists.php.net Subject: [PHP] URL modification Importance: High Hi all, I saw on some websites that modifies the link

RE: [PHP] URL modification

2008-02-22 Thread Xavier de Lapeyre
29 00 Site: www.eds.mu Email: [EMAIL PROTECTED] Please consider the environment before printing this mail note. -Original Message- From: Andrés Robinet [mailto:[EMAIL PROTECTED] Sent: vendredi 22 février 2008 11:48 To: php-general@lists.php.net Subject: RE: [PHP] URL modific

RE: [PHP] URL modification

2008-02-21 Thread Andrés Robinet
> -Original Message- > From: Xavier de Lapeyre [mailto:[EMAIL PROTECTED] > Sent: Friday, February 22, 2008 2:09 AM > To: php-general@lists.php.net > Subject: [PHP] URL modification > Importance: High > > Hi all, > > I saw on some websites that modifies the links to access the webpages. >