httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] Rewrite main.css to main-min.css
Date Wed, 06 Oct 2010 12:07:16 GMT

----- "Craig Huffstetler" <craig.huffstetler@gmail.com> 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:

No. Don't. If you have access to the httpd.conf you
should not, NEVER, put ANYTHING in .htaccess

> RewriteEngine on
> RewriteRule main.css main-min.css
> 
> There are no directories or special rules for this, Ben? I don't
> quite
> understand why you even need to use mod_rewrite in this case.
> 
> Craig
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message