html - Uploading an XAMPP subfolder to a web server -


i'm new xampp, , don't know more html , css. i've put website subfolder in htdocs called test. in html, have relative links /test/path/to/image.jpg.

i planning on uploading subfolder test server using ftp. question is, encounter problems because of way have links formatted? when website live, i'd url more example.com/path/to/image.jpg rather example.com/test/path/to/image.jpg. better use ../ define paths instead?

i've seen similar questions required people use .htaccess file, can't find that/don't know how use it. again, sorry total lack of knowledge on this; i'd super grateful help.

/test/path/to/image.jpg

isn't relative path/link - absolute, meaning web server try serve file http://www.example.com/test/path/to/image.jpg. if file served using relative url, should use:

path/to/image.jpg

which serve file relative page requesting it. if requesting page in test directory, , document root test directory, server deliver http://www.example.com/path/to/image.jpg.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -