mod_rewrite virtual directory to download

Is it possible to rewrite a virtual directory to a file-download? I tried many solutions, but nothing works for me...





Thanks for your help!


-------------Problems Reply------------

Have you tried this one?

RewriteEngine on
RewriteRule ^vfolder$ /storage/ [L]

Category:apache Views:1 Time:2018-11-06

Related post

  • 401.1 Error when accessing virtual directory pointing to network share 2009-03-06

    IIS5 is running on SERVER1. One of the virtual directories in IIS, myfiles, is pointing to "A shared location on another computer", //SERVER2/myfilesshare When I try to access the page: http://SERVER1/myfiles ... I get the error: You are not authoriz

  • Virtual Directory not being configured as an application in IIS 2009-12-21

    I downloaded a testing website code from a site and I converted it to visual studio 2008. But, I get the compilation error as follows: "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. Thi

  • Apache virtual directory without redirect 2010-02-18

    What I'm trying to accomplish is pulling content from a directory that is not the same as the url path. For example: URL: path: /www/production/ Currently, the root url pulls content from the path above. What I want to do is something li

  • IHttpModule not being applied to virtual directory 2010-04-22

    I have a network folder that is mapped to my iis app as a virtual directory and I'm trying to do some authentication for files that are located there with an ihttpmodule. I've verified that the ihttpmodule is firing properly for anything else in my a

  • Virtual directory problem for cruise 2010-06-16

    I have downloaded setup and have installed it in "C:\Program Files\CruiseControl.NET". It contains a folder called "webdashboard" which has aspx page and some other stuff as well. I want to configure this in my IIS so that I can acc

  • Authentication for IIS content in virtual directory under ASP.NET MVC website 2010-07-27

    I have an ASP.NET MVC application for which I store uploaded content files in a virtual directory. This virtual directory is directly underneath my MVC website in IIS. My problem is that the virtual directory allows anonymous access. Anyone, logged i

  • Virtual Directory Authentication 2010-08-09

    I am developing a application where i am performing the Download/Upload using WebClient and BITS. i have a virtual directory in IIS6.0/7.0. i have to set the Authentication to the that directory(Id & Password). currently i m using basic IIS authe

  • Password Protect Virtual Directory With .htaccess 2010-09-08

    I have a site with a virtual directory structure like which is actually a .htaccess rewrite to I want to password protect the folder folder with .htaccess, and know how to do that with actual fo

  • IIS Virtual Directory in Azure 2010-12-23

    I've been told that you can create virtual directories in IIS hosted on Azure but I'm struggling to find any info on this as its a relatively new feature. I'd like to point the virtual directory to an Azure Drive (XDrive, NTFS Drive) so that I can re

  • Override IIS Virtual Directory/Url in Web Application Project 2011-03-02

    I have a team currently working on a Web Application project, we want to be able to run the project through our local IIS web servers and let each dev map it to whatever virtual directory they like. Currently every time we check in we are stomping on

  • How to make a virtual Directory? 2011-03-03 In above url, it looks like "What_do_the_abbreviations_mean_on_an_ultrasound_scan" is a directory!! but i think its a virtual directory !! I want to know about this stuff

  • ASP.Net How can I upload file to virtual directory on same server as web app 2011-03-11

    I have a web server with a web application and a website both on it (2 seperate entities within IIS7.0). The web application needs to be able to upload files to a virtual directory created within the same web server and the website needs to be able t

  • Is it safe to map a virtual directory to a subfolder within App_Data for serving images? 2011-07-18

    I am running an mvc3 app under IIS7. the general public can upload images via a file upload control, which resizes the images then writes them to a subfolder of the App_Data folder. When it comes to displaying the uploaded images on pages, I cannot s

  • virtual directory in 2011-10-04

    I want to create virtual directory using But while creating permission denied error occurs.If im manually creating virtual directory no error.. Pls advice any solution. --------------Solutions------------- You need the Microsoft SQL Server 20

  • .htaccess - Virtual Directory for a single predefined file 2011-11-12

    How would be the .htaccess lines to make a Virtual Directory from a single php File? should go to Not all php files, only a single predefined in this Case the file.php Thanks! --------------Solutions--------

  • deploy MVC site with msdeploy including IIS settings from CI server that doesn't have virtual directory setup 2012-02-20

    I am trying to figure out how to use msdeploy with my MVC site to be able to automate the deployments including setting up IIS on the remote server. I use the following command to create the package: C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBu

  • Virtual directory inside Orchard web application 2012-02-20

    I would like to have a /downloads folder inside an Orchard web app where I can direct clients to so they can download files ie. In IIS I have created a virtual directory (not an Application) underneath the Orchard

  • Stop IIS from serving files in virtual directory 2012-03-06

    I have a virtual directory (called "File") setup for my web application. The directory is used to house user file uploads as well as official downloads that we offer. I want to prevent any file from the "File/UserUpload" directory from ever being ser

  • What is the proper virtual directory access permission level required for a SOAP web service? 2008-08-27

    When setting up a new virtual directory for hosting a SOAP web service in IIS 6.0 on a Server 2003 box I am required to set the access permissions for the virtual directory. The various permissions are to allow/disallow the following: Read Run script

  • Passing data between a parent app and a virtual directory 2008-09-15

    I have an application that runs as a child application in a virtual directory. I want to pass a value from the parent application, but I believe that Session is keyed per application, and won't work. To further complicate things, the parent applicati

  • Install tool to create virtual directory on IIS 2008-09-22

    What install tool can I use to create Virtual Directory on IIS? OpenSource, free or to do in C#. --------------Solutions------------- WiX can create IIS virtual directories. You can create IIS virtual directorys using NAnt and the MKIISdir task in th

  • Access denied when creating a virtual directory via Web Deployment Project 2008-10-02

    I’m trying to use a (VS 2008) Web Deployment project in a TFS solution to deploy the web site to the (TFS 2008) build server to run web based unit tests. For some reason, that I can't yet figure out, it is failing to create the virtual directory: Usi

  • ASP.NET MVC in a virtual directory 2008-10-08

    I have the following in my Global.asax.cs routes.MapRoute( "Arrival", "{partnerID}", new { controller = "Search", action = "Index", partnerID="1000" } ); routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "I

  • Rename Virtual Directory in IIS? 2008-11-05

    How can I rename a Virtual Directory (Web Application) in IIS 6.0/7.0 using Vbscript? Thanks, --------------Solutions------------- If you just want to change the site name in IIS 7. Edit the applicationHost.config file. This file can be found in c:\W

Copyright (C), All Rights Reserved.

processed in 0.094 (s). 11 q(s)