redirection

IE Browser related problem

Hi, I am having a weird browser issue - works fine with FF, chrome but not in IE What I am trying to do is dynamically form the html for printing a coupon - and a part of it is a link redirecting to another page onclick = String.Format("javascript:PostBackCoupon123('{0}','{1}');", zipCode, cityName); couponContent.AppendFormat("<a bor...

How to take a redirection URL

I have a problem with redirection, in my work I have to make a connection to a URL that automatically go to another URL at this point it takes the credential (username and password) and redirect to a URL that contains a parameter which need me. How can I take this parameter? To be precise, I have to do this: Embed a Web browser wit...

Auth Component redirects automatically in cakePHP

Hello folks, After adding Auth component while accessing the home page it redirects to login page ie., let www.domain.com is my url. After adding the auth component when i try to access www.domain.com it redirects to www.domain.com/logins/login. how can i avoid this initial redirection?? i already given a route as below Router::co...

htaccess 301 redirect entire site but with exceptions

I am trying to create an htaccess file to redirect my entire site except with some exceptions, but I can't get it working. I need to redirect the entire thing, provide a specific redirect, and exclude two pages. Below is my non-working sample. Thanks! RewriteCond %{REQUEST_URI} !^/events/index.html RewriteCond %{REQUEST_URI} !^/calendar...

browsers don't resend form data in ajax call if they are redirected??!

Hi guys, I've been tinkering with URL Rewriting on my site and fixing the canonicalization of my URLs (so I don't have duplicate data on search engines, etc.) and it was recommended everywhere to either always remove/force the trailing slash (I chose to remove it) and also to redirect /index to . So I put the following two rules in my ...

Reading child process' output as soon as some is available?

I've been trying various methods (popen, pipes + fork/exec, ...) to read a child process' output, all of which are working, but exhibit the same behavior: whenever I try to read the output using read/fread, it only returns when the buffer is completely full, or when the child exits. I'm looking for a behavior that's more like that of soc...

Disable buffering on redirected stdout Pipe (Win32 API, C++)

Hi, I'm spawning a process from Win32 using CreateProcess, setting the hStdOutput and hStdError properties of STARTUPINFO to pipe handles created with CreatePipe. I've got two threads reading the pipes, waiting for data to become available (or the process to complete, at which point it checks that there is no data left before terminati...

Google Buzz & OAuth - redirection problem

Hope this doesn't get too complicated. :) thing is.. I'm trying to make my PHP code post notes to Google Buzz using OAuth as authentication mechanism. I'm doing the typical "OAuth dance" (get request token, authorise it, exchange for access token), but i've ran into some problems that seem to be on Google's side. Hope i'm wrong - it wou...

javascript redirecting to main window doesn't take into account http option (&)

hello, i'm triying to use javascript redirect to main window after log in succeed in an iframe. this is my code : if ($_GET['redirect']!='') { $redirect=$_GET['redirect']; $smart->assign('redirect',$redirect); } $redirect=$_GET['redirect']; echo $redirect; if(isset ($_SESSION['user'])&&$_SESSION['user']!='') { $user->...

Trouble restoring stdout after being redirected to a child process that exits

Currently I have a main process that creates an anonymous pipe and a child process and then uses the pipe to redirect console output to the child process. The pipe is created with CreatePipe, the read handle is passed as the StdIn handle for the new process using CreateProcess, and stdout of the main program is redirected to the write h...

Get Argument And Print It

I want to do a print on a argument that is on the URL, like this(in this case it's Google): http://bitoffapp.org/?http://google.com/ I want to get that and print it like this: print("Go <a href='$url'>back</a> to the page you was before the login); How can I do this? ...

How to write redirect application in asp.net?

I need to move all requests from one domain to another. I want to change part of URL, like subdomain.olddomain/url -> subdomain.newdomain/url. I was sure that this is piece of cake and wrote Application_Begin request as: void Application_BeginRequest(object sender, EventArgs e) { string url = Request.Url.ToString().ToLower(...

.htaccess : languages redirection

Hi everyone, I'm trying to redirect visitors of my blog to either the french or the english version. So I made this .htaccess : <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / #--------------------- # Language Redirection #--------------------- # Checking if the redirection didn't occur yet # Checking that the url doesn't begin...

enabling pagination inside wordpress post

i have a specific single page which display a single post. the thing is that i want to display below it all the other posts which have the same special meta data and i made that to work as well. the problem starts when i try to make pagination to the list of the posts below. the single post url is something like that: blog.com/somepos...

How to detect if Console.In (stdin) has been redirected?

I want to write a console application that have a different behavior depending if the input is coming from keyboard or from, say, a file. Is it possible? What's the most elegant way to do it in C#? ...

mod_rewrite: remove query string from URL?

Hi There, I'm trying to make the following redirection (301) using .htaccess *?page=1 redirects to * (where * is a wildcard). Basically, I just want to prevent anyone accessing a page with ?page=1 at the end of the URL, and instead direct them to the same url minus '?page=1'. Is there a quick way of doing this? Many thanks! ...

Setting up https to https redirection for SUn One web server

Hi all, Any one here know how to set up redirection from https to https? On Sun One, we can go to the virtual server's Content Management tab, click on URL Forwarding and set up http to https forwarding, but I can't find any way to specify https to https. Please give this n00b a clue. Thank you. ...

htaccess redirect - stricter matching on 301?

The following htaccess based redirection rule works fine: Redirect 301 /content/category/2/24/30/ /new/c/url/ The problem is it works too well. If a user goes to /content/category/2/24/30/50/50/ it will redirect to: /new/c/url/50/50/ How can I get it to do a strict match? Either redirecting both examples to simply: /new/c/url/...

Can colorized output be captured via shell redirect?

Various bash commands I use -- fancy diffs, build scripts, etc, produce lots of color output. When I redirect this output to a file, and then cat or less the file later, the colorization is gone -- presumably b/c the act of redirecting the output stripped out the color codes that tell the terminal to change colors. Is there a way to ca...

Why Some Sites not opening in Pop Window?

I have an html page. On that page I want to open popup window. I have a link on which I have to click & open new pop up. But, it is not a new browser window. It is AJAX based popup. I do have used Queness popup & YUI dialog popup. Now, in that window I want to show an iframe which will display page related to link I have clicked. But, ...