Re: [us...@httpd] Re: Redirecting / to non slash

2010-05-18 Thread Nilesh Govindarajan
On 05/18/2010 11:17 AM, Igor Cicimov wrote: Don't forget to switch the rewrite engine on first though: RewriteEngine On RewriteRule (.*)/foo/$ $1/foo [R=301,L] On Tue, May 18, 2010 at 3:45 PM, Igor Cicimov icici...@gmail.com mailto:icici...@gmail.com wrote: Anything wrong with just simple

Re: [us...@httpd] Re: Redirecting / to non slash

2010-05-18 Thread Igor Cicimov
Dude, you really want everything serve on a plate :) RewriteRule (.*)/(.*)/$ $1/$2 [R=301,L] or even better RewriteRule (.*)/$ $1 [R=301,L] On Tue, May 18, 2010 at 4:37 PM, Nilesh Govindarajan li...@itech7.comwrote: On 05/18/2010 11:17 AM, Igor Cicimov wrote: Don't forget to switch the

Re: [us...@httpd] Re: Redirecting / to non slash

2010-05-18 Thread Nilesh Govindarajan
On 05/18/2010 12:25 PM, Igor Cicimov wrote: Dude, you really want everything serve on a plate :) RewriteRule (.*)/(.*)/$ $1/$2 [R=301,L] or even better RewriteRule (.*)/$ $1 [R=301,L] On Tue, May 18, 2010 at 4:37 PM, Nilesh Govindarajan li...@itech7.com mailto:li...@itech7.com wrote:

[us...@httpd] Re: Redirecting / to non slash

2010-05-17 Thread Nilesh Govindarajan
I am using Zend PHP Framework for my application, so all requests to non-existent files, directories (or links) are sent to /index.php/foo/a/b/c/d... Now what happens is- /index.php/foo and /index.php/foo/ are the same page. Same page with two different urls is considered bad, so how to

Re: [us...@httpd] Re: Redirecting / to non slash

2010-05-17 Thread Igor Cicimov
Anything wrong with just simple redirect like this? RewriteRule (.*)/foo/$ $1/foo [R=301,L] Igor On Tue, May 18, 2010 at 11:25 AM, Nilesh Govindarajan li...@itech7.comwrote: I am using Zend PHP Framework for my application, so all requests to non-existent files, directories (or links) are

Re: [us...@httpd] Re: Redirecting / to non slash

2010-05-17 Thread Igor Cicimov
Don't forget to switch the rewrite engine on first though: RewriteEngine On RewriteRule (.*)/foo/$ $1/foo [R=301,L] On Tue, May 18, 2010 at 3:45 PM, Igor Cicimov icici...@gmail.com wrote: Anything wrong with just simple redirect like this? RewriteRule (.*)/foo/$ $1/foo [R=301,L] Igor On