Re: [nyphp-talk] Mod_rewrite and pretty urls problem

2008-02-05 Thread Cliff Hirsch
> Make images, javascript and css relative to root. This is standard > practice. Put the css/javascript in a folder with gzip turned on, and > the images in a folder without gzip. Thanks John. Makes sense. Had it the other as a legacy leftover from when my dev. app was in a subdir. >> Also, w

Re: [nyphp-talk] Mod_rewrite and pretty urls problem

2008-02-05 Thread John Campbell
> But for www.domain.com/faq/ the images, css and javascript files are all > missing. They are all set up as relative links. I'm assuming that there are > now relative to the /faq directory, which does not exist. Is this a > side-effect of mod_rewrite? If so, how do you prevent it? Make all images

Re: [nyphp-talk] Mod_rewrite and pretty urls problem

2008-02-05 Thread Ajai Khattri
On Tue, 5 Feb 2008, Cliff Hirsch wrote: > For pretty urls, I have set up mod_rewrite like so: > > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ index.php?$1 > > For a page like www.domain.com/faq the controller captures the faq

[nyphp-talk] Mod_rewrite and pretty urls problem

2008-02-05 Thread Cliff Hirsch
For pretty urls, I have set up mod_rewrite like so: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?$1 For a page like www.domain.com/faq the controller captures the faq command and everything works fine. But for www.domain.co