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
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
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
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
> -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
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
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..
/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
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
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
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
+ 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
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
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
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
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
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
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
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
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
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
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
> -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 th
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 this action?
Xavier de Lapeyre
--
PHP General
24 matches
Mail list logo