I am using following in my .htaccess file
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^shopping-bag/?$ shoppingbag.php [L,QSA]
This changes the url
to
www.domain.com/foldername/shopping-bag/
All my content is placed in
/www/foldername/
I fixed all the css and js files by declaring a global variable with value http://www.domain.com/foldername/
and place this variable before the path of css and js files. Since file_exists won't work on a URL I tried doing the following
../uploads/image.jpg
The actual path of the image file is
/www/foldername/uploads/image.jpg
I tried doing
var_dump(../uploads/image.jpg)
on
but didn't work. And I don't want to use <base href="">