1.

Solve : Need an explanation of XREF?

Answer»

I'm creating a website in my home computer.

What is the proper syntax to refer to a file in a different drive than your web home (C:\webhome).

I tried HREF="G:\DIR1\dir2\filename" and HREF="G:/dir1/dir2/filename" and neither worked.

Or is it even possible to do.

Any help will be greatly appreciated.

CCLet me get this straight...is this a site you have online or are you only hosting it locally on your computer?

Also, would you be able to post more of your code? A small little snippet like that isn't going to be helpful because there could be SEVERAL issues that we can't see.Quote

I'm creating a website in my home computer.

I think he just created an HTML file on his local pc.

@Crazy Cuban:
Make sure the folders (dir1 and dir2) do not contain any spaces.
For example:

"Folder one" should be renamed to "FolderOne" or "Folder_one".

Now I have to note that this will not work if you have an Apache server (like XAMPP or WAMPP) installed (your webpage will have the URL http://localhost/website). Here the root is http://localhost/ and you can not refer to files on different drives.

Although it MAY work on your home pc, it's bad practice to create href's like that.
Just a tip, let the root of your website be the root. Your root is C:\webhome.
Any files you want to refer to PLACE them in the root, or in a subfolder of the root.


TXS for the replies. As I feared, XREFs can not be made to other drives. The problem is the size (many, many GBs) of the referenced files.

CC



Discussion

No Comment Found