Elimine parte de la URL solo para ciertos tipos de archivos con mod_rewrite

I need your help. I have a Joomla site working. I enabled it friendly urls and it works fine. All rewritten URLs are this way

http://mydomain.com/start/article-page-well-rewritten

When I activate Joomla Cache plugin, when I load page first time, it works fine, but afterwards, it doesn't load any css or image file.
Debugging resulting html, I realized cached file has these images and CSS links

midominio.com/comienza/images/coolimage.jpg
midominio.com/comienza/css/stylesheet.css

En lugar de

mydomain.com/images/coolimage.jpg
mydomain.com/css/stylesheet.css

(real routes)

So I think I need a rewrite rule to remove word "start" from url, and then retrieve them and show, but only to image and css files from mydomain.com/start/

Can you help me how to do it? I don't want anything else to be rewritten...

preguntado el 09 de enero de 11 a las 03:01

1 Respuestas

RewriteRule ^start/(images|css)/(.+) /$1/$2 [R]

Respondido el 09 de enero de 11 a las 08:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.