httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilesh Govindarajan <li...@itech7.com>
Subject Re: [users@httpd] Re: Redirecting / to non slash
Date Tue, 18 May 2010 06:37:52 GMT
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 <icicimov@gmail.com
> <mailto:icicimov@gmail.com>> wrote:
>
>     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
>     <lists@itech7.com <mailto:lists@itech7.com>> wrote:
>
>         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
>         redirect /foo/ to /foo.
>
>         --
>         Nilesh Govindarajan (निलेश गोविंदराजन)
>         Twitter: nileshgr
>         Facebook: nilesh.gr <http://nilesh.gr>
>         Website: www.itech7.com <http://www.itech7.com>
>
>         ---------------------------------------------------------------------
>         The official User-To-User support forum of the Apache HTTP
>         Server Project.
>         See <URL:http://httpd.apache.org/userslist.html> for more info.
>         To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>         <mailto:users-unsubscribe@httpd.apache.org>
>         "   from the digest: users-digest-unsubscribe@httpd.apache.org
>         <mailto:users-digest-unsubscribe@httpd.apache.org>
>         For additional commands, e-mail: users-help@httpd.apache.org
>         <mailto:users-help@httpd.apache.org>
>
>
>

A general rule is possible ?

-- 
Nilesh Govindarajan (निलेश गोविंदराजन)
Twitter: nileshgr
Facebook: nilesh.gr
Website: www.itech7.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message