I have been working on some mod_rewrite stuff which rewrites my ugly urls into nice SEO-friendly ones. Because the directory structure of the rewritten urls is different than the dir structure on my server, my images (and CSS and Javascript) were broken.
I fixed the image/css/javascript breaking problem by using a <base> tag:
[code]<base href=”http://mydomain.com/dir1/didr2/dir3/” />
The problem is that now my anchors are broken. A link like this:
[code]<a href=”#anchor”>link to anchor</a>
Is now broken. Instead of linking to an anchor within the current file, (let’s call it foo.php) it tries to link to [b][url]http://mydomain.com/dir1/didr2/dir3/#anchor[url]http://mydomain.com/dir1/didr2/dir3/foo.php
Is there any way to fix this problem?