redirect

How do I fix Firefox trying to "Save image as" .htm?

Hi! We've recently implemented Amazon S3 in our site which led us to change the way we handled images. We used to call a controller /fotos.php that would read the file from disk, record some statistics, set headers and return the contents of the file as image/jpeg. All went OK until S3. Fotos.php now does a 302 redirect to the resource...

IE 302 Redirect No-Cache Header Problem

A 302 Redirect is being returned after a post of information. This redirect is intended to reload the current page. This all works fine, but IE adds No-Cache to the header: Cache-Control: no-cache We are using Squid to cache our content, and putting this in the header bypasses squid. As this redirect is used quite often(there is no w...

URL redirection in Apache2

Hi, Trying to redirect a URL on one webserver on my LAN to another webserver on my LAN. I assumed that all I needed was a .htaccess file in my /var/www directory whose contents are the following 3 lines only: Options +FollowSymLinks RewriteEngine on RewriteMatch newsite\.level2\.level1\.com http://192.168.0.250:8080 Also I created a...

URL Rewrite with two distinct blanket redirects (one for WordPress permalinks)

I have a relatively complex .htaccess file to control page requests, this currently redirects all requests of files (with some type exclusions) to an index file, with an exception of one directory that includes a WordPress installation. I now need to enable the WordPress PermaLink support but I'm having some difficulty modifying the .ht...

PHP session variables not carrying over to my logged in page, but session ID is

I'm using PHP 4.3.9, Apache/2.0.52 I'm trying to get a login system working that registers DB values in a session where they're available once logged in. I'm losing the session variables once I'm redirected. I'm using the following code to print the session ID/values on my login form page and the redirected page: echo '<font color="re...

Can RSS readers follow redirects if the url of the feed changes?

We are migrating to a Sharepoint solution and our urls are changing slightly. Are most RSS readers able to follow redirect links without breaking the feed and making an update manually? Most of the documentation I'm reading says that this will work for major RSS readers. I have read in some places that a lot of RSS readers will trea...

When/where is the earliest point in a WebForm to call Response.Redirect?

I always put calls to Response.Redirect in my WebForm's OnLoad method, mostly because every example I've seen do that. I was wondering if it was any more efficient (and correct) to do that in OnPreInit? Even if the endResponse param is true? ...

A Captive Portal to Handle My Needs

I am looking into captive portals for my organization. I see a lot of them out there that will allow a user to pass once they a.)enter credentials or b.)pay money. What I'm looking for is a bit different. Let me go into some basics about my system, I am running a windows based network using active directory and an internal DNS. I hav...

linux c/c++ programming telnet connection io redirection

I have a computer (say computer A) whenever computer A gets a connection over a particular telnet port, it launches a program. this program on computer A handles login, authentication etc. One of the jobs it can do is receive files. It handles this by launching gKermit. /usr/local/bin/gkermit -e 8000 -w -a /location/x/ -ir I have a s...

Run CGI application without redirecting from HTML

I have an html page populated from a cgi app. Right now when I make a change on my html page through a form <form action="/cgi-bin/Lib.exe" method=POST name="checks" ID="Form2"> It takes me from http://localhost/index.html to http://localhost/cgi-bin/Lib.exe where the CGI outputs some debug lines I put in there. I then have to manua...

ASPNET MVC: Way to figure out the route of the referer (sic)?

I have some POST actions on my controller that are hit from a pair of GET actions. When validation fails, I want to render the view of the action that the POST is coming from. For example: ~/accounts POSTs to ~/accounts/disable - render "index" view on validation error ~/accounts/profile POSTs to ~/accounts/disable - render "profile" ...

Accessing third party cookies in Firefox

We're building a Facebook application here at work, using the iframe method. For the application to work, it needs to set cookies from within the iframe. Safari has third party cookies disabled by default, so we are currently redirecting the whole browser to our server, set the cookie required to track the session, and then redirect bac...

Are there limitations on the amount of data you can redirect to a file under Windows (XP/2003)?

I'm driving a web services load test using a system of WSF, VBS and JavaScript scripts. The load driver is running on my workstation, sending requests to a remote application server. I'm using WScript.StdOut.Write in the driver script to write results, and just redirecting the output to a text file when I run the test: cscript //nologo ...

Binding redirects

Where is the best place to find information on binding redirects? or maybe just a basic explanation of where you put these redirects within a project? ...

Is it possible to track every http/url redirects using .NET?

I'm doing a windows forms application and it requires me to log every url redirect that's happening on the user's machine. Like when a user googles something and he clicked on a sponsored link, there will be a number of redirects that'll happen there and i would like to track those redirects. Is there any listener class that I can use t...

ASP-MVC: Object Instance Lost When Redirecting After Authorizing

I have an "Authorize" attribute on the Action that binds the form data. If the user submits the form but is not authorized, the login prompt appears. Once logged in, the user is properly redirected, but the model is null. How to handle this? ...

Trouble with encoding special chars for URL through text input

So I'm building a simple php application using CodeIgniter that is similar to Let Me Google That For You where you write a sentence into a text input box, click submit, and you are taken to a URL that displays the result. I wanted the URL to be human-editable and relatively simple so I've gotten around the CodeIgniter URL routing a bit. ...

How do I check if a controller action is already redirecting?

OK, as is often the case, I have a controller action in my app that is protected from unauthorized access by a before_filter. The only thing is that I need to redirect this action if another condition is true: class Payment < ApplicationController before_filter login_required def new redirect_to some_other_path if @order.is_fre...

ASP.NET Push Redirect on Session Timeout

I'm looking for a tutorial, blog entry, or some help on the technique behind websites that automatically push users (ie without a postback) when the session expires. Any help is appreciated ...

.htaccess Redirects

How do I set up an .htaccess file to redirect requests to another folder on another domain? I don't want the links to break, I just want them to go elsewhere. Say mysite.com/image.jpg would redirect to site2.com/images/image.jpg. ...