Ive got a website in a subdirectory but all the image, link and CSS paths are set like this:
“/images/error.png”
or “/help.html”
or “/css/styles/stylesheet.css”
I’ve tried a million different .htaccess things and tried setting the base href tag to the domain.com/subfolder.
I can’t seem to get anything to work!
Also: There are hundreds of files in this system so I can’t manually go and change all the paths to relative.
When you wrote:
Ive got a website in a subdirectoryI am assuming that you moved all images, css etc to subdirectory as well.If that is so you can manage it using a simple RewriteRule. Create a .htaccess under DOCUMENT_ROOT with this code: