redirect

How to use reverse proxy to redirect all url's not on my site to the web

I'm thinking of using an apache reverse proxy and an SSL certificate to secure surfing by various laptops roaming about in wireless land. My thought was have the users set this https proxy as their proxy in their web browsers, but I haven't found a way of redirecting them immediately to pages on external websites like http://www.msdn.mi...

Ruby on Rails - multiple edit

Railscasts did a great tutorial on how to do multiple edit from a selection. But I want to build on top of it. What if I want to do more actions (edit and destroy)? This is similar to gmails ability to preform different actions on mail. I created my form and I have a drop down menu of the action. The form goes to a action in my con...

http redirection issue

Hello everyone, As far as I know, we can use two method to redirects http response. Using Java script window.location; Using HttpContext.Current.Response.Redirect in ASP.Net From function and end user perspective, are the two methods interchangeable? thanks in advance, George ...

Check if output is redirected

I have a console application written in C# which processes some data then prints the results. Until the results are available there is a little animation ( / - \ | ) and progress percentage ( xx% ) which is constantly updating. Obviously if the user redirects the output of my application this will be printed to the text file where outpu...

How do I pass a target parameter to a CakePHP redirect?

I have a module built in CakePHP that is hosted within an iFrame. I need to have a redirect target the parent page. Using normal HTML I do: <a href="#" target="_parent"> But how do I do that for CakePHP redirect? $this->redirect('http://www.url.com'); ...

Which one is better when we want to redirect to a new page in asp.net : using a link button and then Response.Redirect OR using an html <a> link?

hi Which one is better when we want to redirect to a new page in asp.net : using a link button and then Response.Redirect OR using an html link? ...

How do I redirect a multi language site to a default language page?

I have this: http://example.com/EN/index.php - english version http://example.com/PT/index.php - portuguese version What I want: http://example.com/ to be taken to the portuguse page by default. I've also been thinking on having the portuguese page on the root and english in the EN/ directory. is this better for SEO? ...

Migrating from custom ASP & ASP.NET applications to PHP (Typo3)

So we've hired a company to migrate our three websites from custom built CMS solutions to Typo3. One of our sites is still in classic ASP while the other two are in ASP.net 1.1 & 2.0. Typo3 wasn't my choice, but the choice of those with the purse strings. Anyway, the migration of the sites is progressing but I have a problem that nobo...

Redirect After Registration in Drupal

Any one know how to go back to the "last page" after a user is presented the login screen and chooses to create a new account? Basically the sequence is this: User tries to get to protected content Redirected to login page If he logs in he is redirected to original page If he chooses "create new account" and fills it out, he is redire...

redirecting postdata

Hi there. I've recently upgraded a page on our server from classic asp to asp.net The page recieves postdata and saves it to a file. The page is used by many of our clients and the url (to the asp page) is hard coded into their software. This means that i cannot simply swap the old page out for the new one. I'm trying to find a way to ...

How can I detect if page was requested via a redirect?

On a client's website there are loads of redirects going to a particular page. This page somehow needs to have a way detecting whether the request was direct (URI typed in manually) or a redirect. All of the redirects are 301 redirects. Due to SEO rules added indicators need to be avoided. (Google indexes urls with values separately) I...

Redirecting to a new page in Asp.Net with several thechniques - what will happen to the thread you were running it in the prev. page?

Hi I know there is several ways to change the current page in ASP.Net. So, by Redirecting to a new page, what will happen to the thread we were running it in the prev. page? ...

How can I direct output from a program to the console and a log file at same time?

How can I print the output to terminal and file at the same time? $ perl foo.pl > foout.txt does not allow me to see live process. Is there any way I can see the output process real time and getting at the end the output of the screen on a file? ...

Redirecting connection via Service.svc proxy

I am currently working on a silverlight client, making use of a web server, and an application server. Most of the users sit within our firewall, so they do not have any problems accessing the WCF service running on the application server (through a Service.svc file). However, some users will sit outside of our firewall, and only have ...

A simple htaccess redirect

How would I write a redirect rule that would let me use both http://www.site.com/rss and http://www.site.com/anydirectory/rss rather than http://www.site.com/rss.xml and http://www.site.com/anydirectory/rss.xml ? I think I'm close, but for some reason, it's a Monday. RewriteRule ^(.*)/rss.\xml/$ $1/rss [L] ...

IIS - ASP.NET MVC redirection

Hello, I have two applications using ASP.NET MVC, each with multiple controllers. I want to do a redirect from application A to application B, but only for a single route on application A (one controller). Eg. /applicationA/issue/* should redirect to /applicationB/issue/ /applicationA/quality/ should not redirect The examples for I...

Problem executing TCL script from Bourne Shell (redirection trouble)

I am working with VMD (a molecular dynamics visualization package) and I want to open VMD from a Perl script, run a Tcl script, print the output to a log file, then close VMD and return to the Perl script. The ordinary syntax to do this is: system("vmd -dispdev text -eofexit < program.tcl > LOG"); which breaks down as follows, as best...

What is the multiplatform alternative to subprocess.getstatusoutput (older commands.setstatusoutput() from Python?

The code below is outdated in python 3.0 by being replaced by subprocess.getstatusoutput(). import commands (ret, out) = commands.getstatusoutput('some command') print ret print out The real question is what's the multiplatform alternative to this command from Python because the above code does fail ugly under Windows because getstat...

Can iPhone auto redirect be disabled if user wants to view full site?

I am basically producing a simple, watered down, iPhone specific sites on a sub-domain of the original. I know of various auto redirects, like the htaccess & user agent scripts/rules that take the user straight to the iPhone specific site, but these scripts do not cater for someone who has come from the iPhone specific site that wants t...

mod_rewrite to get query string PHP

I asked a question a while ago to sort out my directory structure and you all solved my problem (Thanks!) but im now changing this site to another server and rewrite rule does not work. I cannot find the problem. I sent a support ticked to the hosting and they said: If that statement doesnt work then it will be either incorrect, or n...