Hi I want to stop direct download of videos file from my webiste folder. .htaccess is not working in godaddy windows server Please help me. eg: http://www.domain.com/folder/video.mp4 If paste the URL in the browser. it should not download the file from the server.

Member Avatar
Member Avatar
+0 forum 7

Hi I purchased windows hosting for php from Godaddy. But my .htaccess is not support in windows, so i have to use web.config for my redirection and hidding the filename extension. Can anyone please help me to fix the issue.

Member Avatar
Member Avatar
+0 forum 4

Guys, I have just finished building a web application but am stumped on one bit of code. Bascially I need to modify the <authorization> section of the web.config file via my .aspx page. My current C# code is below and does work in adding a user, however it adds it below the <deny users="*"> line which therefore still blocks the user from logging on. Question 1: When I add a new user via my C# code how can I make sure it is placed above <deny users="*"> line? Question 2: I have also placed a remove button on my page …

Member Avatar
Member Avatar
+0 forum 4

Hi, I am having two different logins on my website. One for the admins to update teh CMS, other I am creating is to provide our 3rd party, access to the files, but are not to be included in the CMS. So I need to have two forms in my web.config; currently this is my entry in the web config: <authentication mode="Forms"> <forms name="appNameAuth" loginUrl="default.aspx" defaultUrl="start.aspx" protection="Validation" /> <forms loginUrl="VenLogin.aspx" name="MY_AUTH" slidingExpiration="true" timeout="20"/> </authentication> But it give the following error: Parser Error Message: The element <forms> may only appear once in this section. So How can I merge them or …

Member Avatar
Member Avatar
+0 forum 4

I need to change the default page a C# application redirects to when the current authenticated user doesn't have permission to reach that page. I looked through the application and found the following code: <authentication mode="Forms"> <forms timeout="525600" loginUrl="~/login/" defaultUrl="~/unauthorized/" /> </authentication> It did not have a defaultUrl before, so I added one, tested it, and saw no change in behavior. As a test I also changed the loginUrl to another page, rebuilt the site, cleared my browser cache, and still saw no change. No matter what I put in loginUrl and defaultUrl, I couldn't get the default page to …

Member Avatar
Member Avatar
+0 forum 3

I keep trying to convert the web.config file from my old server to the new one, which is using Ubuntu server, but I can't get the things done right. Can you guys help me to convert the code bellow to .htaccess? <rewrite> <rules> <rule name="Rule IIS7"> <match url="^([a-zA-Z0-9-_.]+)(___)([0-9]+)(.*?)$" ignoreCase="false" /> <conditions> <add input="{SCRIPT_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{SCRIPT_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="post.php?redir=1&amp;id={R:3}" appendQueryString="false" /> </rule> <rule name="Rule IIS7 2"> <match url="(.*?)(_\!__)([0-9]+)(.*?)$" ignoreCase="false" /> <conditions> <add input="{SCRIPT_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{SCRIPT_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="links/cota_clicks.php?redir=1&amp;url={R:3}" appendQueryString="false" /> </rule> <rule name="Redirect …

Member Avatar
Member Avatar
+0 forum 3

Hello my fellow DaniWebers! I have a question for you! I have an ASP.Net website that I am currently working on. The problem that I am having is that I want to render the Master page's menu differently for the user types. Here is the catch. I can't use roles, only user names. I have stared by creating different SiteMaps in the project, and Adding Multiple providers in the Web.config. The menu is on the Master Page, and is bound with a SiteMapSource. This is a horizontal menu, and not a treeview. (Couple of Google results solved for a treeview.) …

Member Avatar
Member Avatar
+0 forum 4

Hi Friends I am having a domain with name **domainname.com**, and its working fine. i have create a sub domain named **cds.domainname.com** and i have upload some set of asp.net files. when i was trying to access **cds.domainname.com** it is showing the domainname.com web content. Can any one please help me to resolve the issue.

Member Avatar
Member Avatar
+0 forum 4

I'm trying to redirect about 40 web addresses from an old site to a new site. I was able to redirect all of the pages that DO NOT have a ".aspx" in them to the new site using .htaccess but I cannot figure out how to redirect the .aspx links. I was told I need to do it in the web.config file. Can someone please help? I moved a site from [url]www.handstands.com[/url] to [url]www.randombuy.com[/url]. Here is an example of a link that works using .htaccess and one that does not. [B]Works[/B]: [url]http://www.handstands.com/info/About_Us[/url] [B]Doesn't work[/B]: [url]http://www.handstands.com/p-294-keuken-5-piece-ceramic-knife-set-with-bamboo-block.aspx[/url] (should go to: [url]http://www.randombuy.com/p-294-keuken-5-piece-ceramic-knife-set-with-bamboo-block.aspx[/url]) Any …

Member Avatar
Member Avatar
+0 forum 7

I need to convert this code to web.config file. Plz Help.. #Fix Rewrite Options -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rewriterule ^(.*)$ $1.php [L,QSA]

Member Avatar
Member Avatar
+0 forum 4

Hello There ! I Am Getting An Internal Server Application Error 500.19 In My Web Application (web.config file) :( . Error Is On Line 22,23,24 . [B][COLOR="Green"]Here Is My web.config File :[/COLOR][/B] [ICODE]<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <directoryBrowse enabled="false" /> <defaultDocument> <files> <clear /> <add value="index.php" /> <add value="index.html" /> <add value="Default.aspx" /> <add value="Default.htm" /> <add value="Default.asp" /> <add value="index.asp" /> <add value="index.aspx" /> <add value="home.aspx" /> <add value="index.htm" /> </files> </defaultDocument> <rewrite> <rules> <rule name="Imported Rule 1"> <match url="^action/([A-Za-z0-9_/-]+)$" ignoreCase="false" /> <action type="Rewrite" url="engine/handlers/action_handler.php?action={R:1}&{QUERY_STRING}" appendQueryString="false" /> </rule> <rule name="Imported Rule 2"> <match url="^services/api/([A-Za-z0-9_-]+)/(.*)$" ignoreCase="false" /> <action type="Rewrite" url="engine/handlers/service_handler.php?handler={R:1}&request={R:2}&{QUERY_STRING}" …

Member Avatar
+0 forum 0

Using VWD Express 2008, GoDaddy Hosting, SQL Server, ASP.Net VB I am very new to ASP.Net and have been working on a site and at one point, everything worked properly on local server. However, I have uploaded the site to GoDaddy hosting and the log-in function of the site does not work. I have been trying for a long time to figure out how to get this to work properly, however I have been unsuccessful. I continue to get an error page with the following: Server Error in '/' Application. A network-related or instance-specific error occurred while establishing a connection …

Member Avatar
Member Avatar
+0 forum 3

Hi, We are currently facing a strange issue. We are having an error logging functionality that logs errors occurring to a database. A scenario occurs where there is an error occurring in the application, custom error page comes up. When looked in the database for error description error is not logged at all. However, when the Custom error mode is set to Off and a save is given to the web.config file the error no more occurs and the application works all fine. In short, Error disappears on just opening and saving the web.config file. What might be actually causing …

Member Avatar
Member Avatar
+0 forum 4

Hi, The web application I developed throws an error to get the domain name that I set using session variable in session_start in global.asax file. The error gets resolved if I upload the web.config file. But the problem is that the error comes up again. The support st the hosting company suggested me that it is something to deal with the application pool recycle for the website in IIS. But I cant get to the root of this problem. Does session variables affect the application pool recycle?? Can someone please help me get this issue resolved? Thanks in advance for …

Member Avatar
Member Avatar
+0 forum 2

Hellow. I have installed IIS7 in windows 7. I have a ASP.NET project. Now i want to run it through IIS7. But whne i try it from by web browser by [B][url]http://localhost/Myweb/Default.aspx[/url][/B], it shows the following error on my browser.. [CODE] Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused …

Member Avatar
Member Avatar
+0 forum 2

I got the error below what might cause it? Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Line 42: </serviceBehaviors> Line 43: </behaviors> Line 44: <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> Line 45: </system.serviceModel> Line 46: <applicationSettings> Source File: C:\inetpub\vhosts\test\httpdocs\test\web.config Line: 44 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

Member Avatar
+0 forum 0

Hello there, Is there any way of disabling caching of asp.net pages in folder or application level.... meant to say, is there any option available in the web.config file for disabling caching...i have done by using page wise...but need to disable caching for all pages in my application... plz help me on how to disable caching for all asp.net pages at a time... thanks for any help provided. regards shouvik

Member Avatar
Member Avatar
+0 forum 5

The End.