> 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
> 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
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
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