[nycphp-talk] Mod_rewrite problem
John Campbell
jcampbell1 at gmail.com
Tue Feb 19 16:45:42 EST 2008
In the .conf file are you putting the rules inside a <Directory>
directive? As far as I know, <Direcory /path/to/folder/> works the
same as .htaccess, and you should try copying it exactly.
On Feb 19, 2008 4:04 PM, Cliff Hirsch <cliff at pinestream.com> wrote:
>
> I use the following to help work with SEO-friendly URLs:
>
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.*)$ index.php [L,QSA]
>
> This works fine on my development machine in the main .htaccess file.
>
> On the production machine, I do the same thing, except it's in the main
> conf file and there is no RewriteBase, since that is per dir context.
>
> But on the prod. machine, the css and images do not appear. All files are
> relative to root (/css/file, /images/file). Any ideas?
More information about the talk
mailing list