Hey there!
I am working on customizing my price tapestry script for SEO purposes. So what I want it get the .htaccess file working properly.
I am working on apache, I've set the config to rewrite=true and followed instructions on how to install .htacces. But what happened is the following:
After putting .htacces in my folder all images and css are not shown anymore on the pages. Without htacces and config rewrite everything works perfect, but after uploading the .htacces the redirection works great (nice urls) but it's a blank page with some black text on it. Do you know what the problem is or can be? Please let me know.
Greets,
Chris
Hello Chris,
This is almost certainly because your links to images and CSS etc. are relative. When using rewrite, "virtual" directories are created by the search engine friendly URLs, so the browser ends up looking in the wrong place.
To fix this, you need to make sure that you use absolute URLs in all your image URLs and links to other CSS files, for example:
<img src='/myImages/someimage.jpg'>
The important part is the first / character, as this tells the browser to look for the myImages directory at the top level of your website, rather than the re-written folder that it thinks it is actually in, even though it doesn't exist on the server!
Hope this helps,
Cheers,
David.