Re: [EMAIL PROTECTED] avoiding a redirect loop with rewrites

2007-02-22 Thread matt farey
Josh Trutwin wrote: > On Thu, 22 Feb 2007 21:36:03 + > matt farey <[EMAIL PROTECTED]> wrote: > > >> RewriteEngine On >> ReWriteCond %{REQUEST_FILENAME} pid5.html$ >> ReWriteCond %{QUERY_STRING} !stop=yes >> ReWriteRule . /products.html [R=301] >> ReWriteRule ^products.html$ /pages/pid5.htm

Re: [EMAIL PROTECTED] avoiding a redirect loop with rewrites

2007-02-22 Thread Josh Trutwin
On Thu, 22 Feb 2007 21:36:03 + matt farey <[EMAIL PROTECTED]> wrote: > RewriteEngine On > ReWriteCond %{REQUEST_FILENAME} pid5.html$ > ReWriteCond %{QUERY_STRING} !stop=yes > ReWriteRule . /products.html [R=301] > ReWriteRule ^products.html$ /pages/pid5.html?stop=yes [L,QSA] Thanks Matt - I'l

Re: [EMAIL PROTECTED] avoiding a redirect loop with rewrites

2007-02-22 Thread matt farey
Josh Trutwin wrote: > Hi, > > I'm working for a small company that uses a custom CMS. When > customers create pages in the CMS a file gets created based on the > page's id number - for example: > > www.mysite.com/pages/pid5.html > > I've pushed some code into the CMS that lets the site admin cre

[EMAIL PROTECTED] avoiding a redirect loop with rewrites

2007-02-22 Thread Josh Trutwin
Hi, I'm working for a small company that uses a custom CMS. When customers create pages in the CMS a file gets created based on the page's id number - for example: www.mysite.com/pages/pid5.html I've pushed some code into the CMS that lets the site admin create a nice URL for each page so you g