I want to rewrite the URLS cuz the images don't appear when I upload to the webhost and publish them. They work fine on my local comp though. How do you rewrite the URLs I want to use different paths. Thanks.
Five answers:
2009-12-27 22:39:45 UTC
If site does not host images, then you MUST host your image online at any good image hosting site. The URL MUST be the DIRECT link to the image alone and not to the page the image is on.
You can change the "p" tags to div tags and style as needed. The src="Path to image" part can be a relative path. For an image and the file using it in the same folder:
src="image.jpg"
If the image is in its own folder:
src="images/image.jpg"
For a file one directory up:
src="../images/image.jpg"
Use "../" as many times on the html file as needed to send the browser back one level.
See...
Absolute and Relative Paths: http://webdesign.about.com/od/beginningtutorials/a/aa040502a.htm
My guess is you're not using relative locations. Make sure that you are referencing your images based on their location relative to the file they are being accessed from. In other words, you have "index.php" and next to it an image "me.jpg". Use . If you have a folder "graphics" that contains "cool.jpg" use . Then, just make sure you upload the image to the same relative location, and it should work just fine.
2009-12-28 05:19:13 UTC
you can rewrite in your computer, and then re-upload it again to your webhost. it will replace the old one. hmmm do not use special character, if you want to rename the file. i hope it works
cj
2009-12-28 05:18:15 UTC
Make an account on a site like photobucket.com and upload your images to your account. That will supply all you need for links and where you want them.
?
2009-12-28 05:19:56 UTC
ffef
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.