Question:
i need to shorten some urls?
delfin
2013-10-02 14:40:33 UTC
i want to shorten the urls for the images on my site

every-time i try to shorten it to just the file name it doesn't work.
why? how can i do this?

i don't want to have to change the urls later, when i put this online. Or, do people really build entire websites and change all the html later?
Four answers:
?
2013-10-02 15:50:50 UTC
Disregard the other answers, they are completely off.



You need relative paths.

Say you have a file called mypage.html. Say it's in the same directory as a directory called "images", and there's an image in there called "logo.png".

You'd use this:





If ithe images is in the same dir, use just the filename. You can also go up a level by using two dots. Say you have a stylesheet in a subdirectory, you'd use something like:

body {

background-image: url(../images/pattern.jpg);

}
?
2013-10-02 21:52:49 UTC
You can use a URL shortener on WRAYWEBDEV.TK which is at the top and bottom of each page. It allows you to register a free .tk domain for each link for as long as you want. You can then create really short links. If you want you can also register it to an email address so you can edit it as well. It is where I go to to shorten my links and it has worked really well for me. It is also very good to link to images on social media due to its short nature.
2013-10-02 21:44:07 UTC
use tinyurl.com itll make ur url smaller and also add hyperlink its much better for example



Google Is Here!



if anymore questions email me at michaelpresman@yahoo.com
2013-10-02 21:41:36 UTC
I would use www.bit.ly

Unless you are talking about actually downloading and uploading files to your host.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...