redirect

session lost on redirect

I have a web app that is being hit by facebook. The login page retrieves the keys that I need and sets some session variables. When the server then redirects the user to the next page, the session information is lost. I’m running the IIS engine on vista ultimate at the moment, the app pools don’t matter because I’m using a state servi...

PHP Redirect Without Modifying Headers

I have a PHP script that is redirecting the user via some code like: header ('Location: http://someurl/somepage.php'); Then in somepage.php I am trying to access $_SERVER['HTTP_REFERER'] to determine where the page request has come from. I find that $_SERVER['HTTP_REFERER'] is empty when a page is called using the header location meth...

Will re-direction from home page affect search engine crawling?

There is a new domain, let's say va.in. Content is being prepared for the sub-domain a.va.in The idea is that va.in/index could contain pointers to various sections sometime in future (e.g. b.va.in, c.va.in etc.). As of now, it does not make sense to have such a page as there is just one section i.e. a.va.in If I decide to re-direct ...

How to add additional headers to 302 redirects in Apache?

I have a redirect in Apache config like Redirect temp /foo.xml http://www.baz.com/foo.xml I am trying to add an Expire and m-cache headers for a CDN to this 302. This would be trivial in php, but I need to do this in Apache config files. Normally this is done like this: ExpiresActive On ExpiresDefault "access plus 10 mi...

htaccess redirect

This is what I'm trying to do with the htaccess: Force remove the www from the url Be able to use http://website.com/site/ to get to http://website.com/site.php, and force the last slash even if it's not added by the user. So if i write http://website.com/site it will be converted to http://website.com/site/ Also translate http://websi...

How do you implement simple website redirects?

If you go to www.codinghorror.com, it is automatically redirected to www.codinghorror.com/blog How does one re-direct to the "/blog/"? I'm using Dreamhost Shared Hosting, so my options of configuring the server are limited. ...

find referring page in asp.net mvc after a jquery redirect

I am faking an autopostback using jquery since I am using asp.net mvc. It's being performed in a select list (dropdownlist) like this: $(document).ready(function() { // autopostback for character drop down list $('#playerCharacters').change(function() { var charId = $('#playerCharacters option:selected').val(); w...

Page Redirect in SharePoint

How would I be able to redirect someone to a specific page based on their user profile information such as the department they are in? I came up with 2 options: Have a "My Department" link to a aspx page that uses SharePoint's object model to determine what department they are and then redirect based on their department. Have an HTTPM...

HTTP response with redirect, but without roundtrip?

I want the browser to reflect some other URL than the one used to create the request, but without roundtripping to the server. I would maybe do this: POST /form HTTP/1.1 ... ...and then return: HTTP/1.1 200 OK Location: /hello But that would cause a redirect, the browser will again, request URL /hello. I would like to just tell ...

redirect user, then log his visit using php and mysql

I have a PHP redirect page to track clicks on links. Basically it does: - get url from $_GET - connect to database - create row for url, or update with 1 hit if it exists - redirect browser to url using Location: header I was wondering if it's possible to send the redirect to the client first, so it can get on with it's job, and t...

Asp.Net call function from a different *.aspx.cs page

If I have a button inside one page for example "main.aspx". And upon being clicked I want the clicked method in "main.aspx.cs" to call a function from a different *.aspx.cs page but also redirect to that *.aspx page...is that possible? ...

Passing param values to redirect_to as querystring in rails

This should be simple, but I can't seem to find an easy answer. How can I pass param values from the current request into a redirect_to call? I have some form values I'd like to pass into the query string of a GET redirect I'd like to do something like: redirect_to @thing, :foo => params[:foo] and get sent to: http://things/4?[foo...

ZF: performing redirect inside model

I've chosen to move Form processing from Controller to MyForm class, in order to follow ThinController/FatModel rule. But some of my code in Zend_Form class needs to perform a redirect. In Zend_Controller_Action my redirect was: $this->_redirect('/'); What would it become in Zend_Form? ...

redirect with code igniter

can anyone tell me why my redirect helper doesn't work the way i'd expect. i'm trying to redirect to the index method of my main controller like so: if($provider == '') { redirect('/index/provider1/', 'location'); } but that takes me www.mysite.com/index/provider1/ when it should go to www.mysite.com/provider1. does that make sen...

Self redirect an .Asp page and keep the same Request variables

Hello, Am trying to convert the content of a page to an Excel format, the problem is when I redirect the page I don't get my request variables so I found a solution that we should define a hiden variable for each request variable and then define the value after Get call. This is the code that am using now : <script language="Javascript...

Sending Messages to Squid Proxy Users.

Is it possible to send custom HTML messages to users when they first start a session through a squid proxy server? I want to be able to redirect a users first request to the "message of the Day".... then the rest of their browsing requests for the remainder of the session go without being redirected..... Detailed Steps: User o...

Xampp - Redirect external url to localhost

I use an installation of Xampp to test my files locally before I upload them to my web server. My web pages usually contain a lot of 'hardcoded' links, which means to test any links (or any forms etc) I need to change the hardcoded link to point to localhost, and then rechange it after I am done testing. What I am looking for is a way t...

branch to external page from a JSF context

Hi all, I have a JSF frontend to a webapp served via tomcat. I want to be able to 'branch' to a page external to the web-app then have that page branch back to the original JSF page. Complications are that (1) occasionally a reasonably large chunk of data needs to be passed back and forth; and (2) the url of the external page is dynamic...

PHP Redirect Pause

How do I pause a page for a certain amount of seconds before redirecting the user to another HTML/PHP page using PHP? ...

File paths in ASP.net

I have gotten mixed up in the past with regards to file paths (relative, physical, etc.). With my following project structure: Solution MySolution - MyProject -MiniApp Folder -MiniApp.aspx -Default.aspx -Default2.aspx Please provide examples on redirection (ex. Response.Redirect("~/Default.aspx")) navigation from: Def...