How to make the link unrelated to the absolute address.

Originally, I am using the exactly link, such as
http://www.aaa.com/index_files/cs.htm

But now I am changing the domain to www.bbb.com.
May I make the link on the page not related to the domain address.
Thanks, I am using sharepoint
turbot_yuAsked:
Who is Participating?
 
gamebitsConnect With a Mentor Commented:
Yes, make it relative instead of absolute

<a href="index_files/cs.htm">CS</a>

as far as you have the folder index_files it would work.
0
 
MacroLandConnect With a Mentor Commented:
addition to gamebits,

<a href="/index_files.htm">CS</a>  here / sign shows the root of the directory of your site if you are using relative URL's.

Guess you are in the folder b which is in the folder a, and you want to refer to a.html in the folder a.

<a href=".../a.html">a link</a>

if the folder a is immediately under root directory of your site

<a href="/a/a.html">a link</a> will also work

if you are referring to a file in the same folder

<a href="insamefolder.html">in the same folder</a>

Regards,
0
 
turbot_yuAuthor Commented:
I am using ms sharepoing, should I type below inside the blank.
.../a.html
/a/a.html
insamefolder.html
0
 
MacroLandConnect With a Mentor Commented:
>>I am using ms sharepoing, should I type below inside the blank.

I have not used sharepoing however this are HTML references which should be valid in any editor or language.

Regards,
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.