Is there a way to have .url files direct to the url the file is shortcutting?
I am listing files in a directory on my webpge and a couple of them are .url files. I'd like for the user to click on those files to go to the url that it is a shortcut of. However, the files currently just get downloaded. Can I get IIS to handle these files properly?
Related
I have a VPN app that pulls .ovpn files from a folder on my website /home/mywebsitename/public_html/remoteovpn When I add the .opvn files to this folder and my app pulls them from https request. You can go to the files in the browser link, you can see them and read all the config no problem even dl them. But when my app pulls the files it gets the file names and makes the .opvn files, but edits the files with my website wp theme data, not the .ovpn config data. I can't figure why it is doing this.
I want the users of my webapp to be able to click an href link leading directly to the content of .csv files located on the IIS server, just as if it was a .txt file. I don't want the browser to open the download file dialog which obviously forces the users to download the file in order to see it quickly and that's not what I want.
In a nutshell, (how) can we force the browsers to display csv files as text/plain without having the hand on the http requests (href link) ? Is it possible in IIS 7 ?
Thanks a lot.
How do I get a link to a file I have uploaded to my website?
I have uploaded a file to my website by going to Admin - File Manager then I uploaded the file to this destination *Portal Root\Pages\Customisation* how do I then get a link to the file I just uploaded?
The file is myFile.PDF so I have tried this path but it doesn't send me back the file:
http://mywebsite.com.au/Pages/Customisation/myFile.pdf
The "portal root" is typically housed in the directory "Portals/0," so the full URL would be http://mywebsite.com.au/Portals/0/Pages/Customisation/myFile.pdf. If you have multiple sites/portals within the DNN installation, that you'll need to find the ID, instead of assuming that it's 0.
There's also a small possibility that the home directory has been customized to some other directory name entirely. But you can verify the directory on the Advanced Settings tab of Site Settings, in the Page Management section.
Today I moved my website to a new hosting company (Verio). I've done this lots of times before, and I know that your website should go inside the "htdocs" folder.
Now usually when I use FileZilla, I can do a "Right Click" on a filename to get the URL of that file. This is the result of my root default file: ftp://test#test.com/www/htdocs/Research/index.php
However, on the web, the true URL of my default file is: www.test.com/Research/index.php
My index.php file is in the website root folder. Does anyone know why FileZilla would include the server folders "www/htdocs" as part of the URL? These folders should not normally be visible to the user.
OR, is this look correct?
That ftp url is correct. Your FTP account has access to the two folders (www/htdocs/) before the document root, as most hosting providers provide.
You are also correct to assume that http access is limited to the document root. (Meaning they cannot see www/htdocs/)
I don`t know anything about .htaccess files except how to secure a folder or deny access.
I want to deny direct access to .js files (by typing the file name in url) on my server, say the files are stored in a folder named /js/ how can I use the .htaccess to do that?
You cannot do that.
Actually there is no 'direct access' or 'indirect access'. The browser accesses the JS file the same way when you load it from a SCRIPT tag and when you try to load it separately (typing the file name in browser).