Copy URL

I want to use the "Copy URL" function to copy an HTTP shortcut that I can send to a friend without placing the link on a web page or giving public access to the file. I right click on a file in a directory in my website, and select "Copy URL." I get an error message that says, "Before you can use this feature, add the FTP site to the favorites and configure the "General -> URL" settings of the favorite item.

Okay, so I add my site to Favorites. I right-click on my site and choose "Properties." Under URL mapping I see two boxes. Under "HTTP URL" I enter the URL of my site, let's say, "http://mysite.com."

Under "FTP URL" I've tried entering various addresses, but none seem to work. I still can't copy the HTTP URL of the file. Here are the various FTP addresses I've entered:

ftp://mysite.com

/mysite.com

mysite.com

/home/username

/

I wish there was something on the SmartFTP site to show how to use this. Nothing I've tried works. Help! And thanks in advance

Once you understand how it works (or think about it, there's only one way it can work), it's easy :-)

Suppose your top-level index file is accessible via a web-browser at:
http://www.mysite.com/index.html

Now locate the same index.html file when connecting via FTP. We're not interested in the FTP URL to that file, but the "shell path" to that file. So if you see something like this in your remote tree view


ftp.mysite.com

  |

  +-home

	|

	+-user

	  |

	  +-public_html


and your index.html is located in the "public_html" folder, the "shell path" to that file would be

/home/user/public_html/index.html

Now take a look at the parts that I've marked bold:

http://www.mysite.com goes to the "HTTP URL" field and
/home/user/public_html goes to the "FTP Web Root Path" field.

So when you prepend the contents of the "HTTP URL" field to any file (possible including relative path) that's on your site, you should get a valid HTTP URL.
And when you prepend the contents of the "FTP Web Root Path" field to any file that's on your site, you should get a valid path (and file name) as displayed in the "Navigation" toolbar of a remote view window.

Here's another example: Suppose you're hosting a forum and the index file is at

/home/user/public_html/phpBB/index.php

Your "HTTP URL" and "FTP Web Root Path" fields would still be exactly like to ones above. Why? Because http://www.mysite.com is still configured to map to /home/user/public_html on the server side, every part of the path that comes after is relative to either prefixes. Replacing

/home/user/public_html (the "FTP Web Root Path")

in the path above with

http://www.mysite.com (the "HTTP URL")

gives

http://www.mysite.com/phpBB/index.php

which is the URL to your forum. That's the way it works.

I am sorry to tag along to someone elses thread but thought it better then starting a new one for the same issue.

I totally understand your clear directions but I am still receiving a 404 not found

The requested resource could not be found error.

my website is http://www.mysite.com

my index.php is in

mysite.com
+ public_html
+phpBB
+index.php

so I add the site to my favorites , right click and properties.
General
Protocol = Normal FTP
host = mysite.com
path = blank

goto URL
HTTP URL = http://www.mysite.com
ftp root = /public_html/phpBB

Can you advise what I am doing incorrectly? Is it a access issue?

Thanks

Thanks for your reply.

I have done exactly that and I am still receiving the error.

Do I need to change any access settings? CHMOD? I am grasping here, sorry.

I have screenshots if that would help. I was not certain about any rules so I whited out my url.

Image
Image

Thanks for your help.

It should work that way. What is the error you get? If you just look at the URL that SmartFTP copies to the clipboard, is it correct?

That is what is so hard, the URL in browser is the exact mapping to the files location. I receive a VDECK 404 Source not found error.

Any ideas? ? Because I am lost.

I do not know if it makes any difference but in my control panel I have www.myurl.com redirected to www.myurl.com/phpbb since my index is in phpBB.

I really appreciate the help.

I think I figured it out....you must make sure that the file you are trying to copy the http url from has to be BELOW, UNDER, or WITHIN the folder that contains the index.php,
for instance...if your index.php is in

mysite.com
+ public_html
+phpBB
+index.php

then you gotta make sure that the file you want is either in the phpBB folder, or is in a folder in the phpBB, aka BELOW,UNDER, WITHIN the phpBB folder.


I do not know if it makes any difference but in my control panel I have www.myurl.com redirected to www.myurl.com/phpbb since my index is in phpBB.
Yes, it makes a difference. In that case you should use "http://www.myurl.com" and "/public_html/phpbb".

I CANT GET IT TO WORK!!!!!!!!!!!!!!!!!!!!!!!!!!
this is starting to anoy me .

Image

The text field says "FTP Web Root Path", so why do you enter a file name? Of course it will not work that way. Just enter a "/" or leave it empty in your case.

Well, what gets copied to the clipboard if you let SmartFTP copy the HTTP URL of index.html? Just paste it here ...

EDIT: Err ... your screenshot looks like if you have edited the properties of the favorite to the SmartFTP server. Of course, you need to edit the properties of the favorite to your ftp.*.br site (which probably is in the "Quick Connect" folder).

I also can not get this to work and I copy about 200 files a day then need to transpose the path to a different program manually. Every time it puts the public_html in the copied path and it does not matter what I change the settings to. (I have tried every variation including those posted here)

What I did as a work around is created another FTP account that access the index root folder, in my case it is public_html, on my server as the root to allow the proper HTTP to be copied. I removed the server root account from quick connects but it is accessible if I need access to those folders.

Not the best solution, but works until a resolution is found. This wouldn't be good for those that do a lot above the index root. I have used several FTP programs over the years and have yet to see one that does not add the http root folder to the url.

i need help.

after updating to the new 4.0.1072.0 i cant get my url mapping to work. please help

Please add your license key id to the your profile in the forum. Thanks.

i cant find out how to ad it. can you email me info or paste a link here.

thanks so kindly in advance

#400106002

Thank you. What problems are you having exactly?
Did you follow the instructions in the posts at the beginning of this thread?

Regards,
Mat


Thank you. What problems are you having exactly?
Did you follow the instructions in the posts at the beginning of this thread?

Regards,
Mat

yes ive tried them all.

smartftp is what im using.
www.chuckotwell.com is my web site

and im trying to do url mapping

and it keeps leaving public in the address which wont let me copy and paste and work right

You need to set the FTP Root correctly. E.g. add the public string to it: /public


You need to set the FTP Root correctly. E.g. add the public string to it: /public

that worked ( /public ) thanks