Re: [us...@httpd] Rewrite main.css to main-min.css

2010-10-06 Thread Igor Galić
- "Craig Huffstetler" wrote: > > Is it possible to use mod_rewrite to alter a request for main.css > to > > main-min.css? > > Yes, but for some reason I think this is more complex. However, I > will > answer given the scope given: > > If mod_rewrite is active then add this to .htaccess: N

Re: [us...@httpd] Rewrite main.css to main-min.css

2010-10-06 Thread Ben Short
Never mind, I altered my build to not include the main.css and name the main-min.css main.css. Thanks On 6 October 2010 09:29, Ben Short wrote: > Hi Craig, > > Some background... > > As part of the build process my web application minimizes and gzips > all the style sheets and javascript files.

Re: [us...@httpd] Rewrite main.css to main-min.css

2010-10-06 Thread Ben Short
Hi Craig, Some background... As part of the build process my web application minimizes and gzips all the style sheets and javascript files. So I end up with main.css main-min.css and main-min.css.gz. The web page will make a request for main.css but I need to use rewrite to return then main-min

Re: [us...@httpd] Rewrite main.css to main-min.css

2010-10-05 Thread Craig Huffstetler
> Is it possible to use mod_rewrite to alter a request for main.css to > main-min.css? Yes, but for some reason I think this is more complex. However, I will answer given the scope given: If mod_rewrite is active then add this to .htaccess: RewriteEngine on RewriteRule main.css main-min.css The

[us...@httpd] Rewrite main.css to main-min.css

2010-10-05 Thread Ben Short
Hi, Is it possible to use mod_rewrite to alter a request for main.css to main-min.css? Regards Ben Short - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> f