Andy Jeffries wrote:
> 
> You can do it, but it depends on how you format your URLs because it 
> makes a
> static HTML file for Apache to serve (and Apache won't serve files with 
> GET
> parameters in the name).  For example, if your URL is:
> 
> http://www.example.com/products?category=5
> 
> This wouldn't work because Apache automatically separates on ? and would
> look for a file called products.html (not your category 5 specific one).
> 
> On the other hand if your URL was:
> 
> http://www.example.com/products/category/5
> 
> Then it would work - the 5 would become 5.html in a folder called 
> category
> in a folder called products.
> 
> Caching works with parameters, just not normal GET parameters like 
> ?foo=bar.
> 
> Cheers,
> 
> 
> Andy

Thank you Andy for you explanation.
How do you do to make your urls look like this?

Greg
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to