.htaccess: determining the base directory
Posted: 02. December 2011 18:37
I've need to access files with absolute addressing that is statring with src="/pic/image.gif"
because I use permalinks on my website.
How do I tell apache that my subdirectory /var/www/calivita is the root directory for accessing files under any subdirectory in /var/www/calivita/...?
I just wanto to access /var/www/calivita/pic/image.gif with url /pic/image.gif ... Is this possible?
Ive put .htaccess filee in /var/www/calivita with this line:
RewriteBase /calivita
Ive also tried
RewriteBase /var/www/calivita
but it doesn't seem to work
And I also restarted apache everytime I did some change (IS THIS NECESSARY??) but it just doesn't seem to work.
Please enlighten me on the matter!
because I use permalinks on my website.
How do I tell apache that my subdirectory /var/www/calivita is the root directory for accessing files under any subdirectory in /var/www/calivita/...?
I just wanto to access /var/www/calivita/pic/image.gif with url /pic/image.gif ... Is this possible?
Ive put .htaccess filee in /var/www/calivita with this line:
RewriteBase /calivita
Ive also tried
RewriteBase /var/www/calivita
but it doesn't seem to work
And I also restarted apache everytime I did some change (IS THIS NECESSARY??) but it just doesn't seem to work.
Please enlighten me on the matter!