Because using the <base> tag is giving me some problems lately, I'm curious about what the best solution is to use together with mod rewrite.

I use mod rewrite a lot, and the <base> tag helps me to keep the links to my css files, for example, working. I link to those css files in a way of ../, and if I rewrite my url using mod_rewrite, ../ would point to the wrong directory.

So my question would be: How can I point to my css files correctly when using mod_rewrite, without using the <base> tag (in PHP)?

Bump

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.