redirection

PHP redirection problem in IE when using session variables

I have a small website that works like below 1) User goes to the login page and enters the credentials (call it page1) 2) The form gets posted to page2, which authenticates the user, calls session_start and then sets a session variable with $_SESSION['somevar'] and redirects to the page3 3) On page3 , I check if the $_SESSION['...

asp.net MVC Url.Content() CDN redirection

I'm wondering if there's an easy way to specify a CDN for all content that I reference through Url.Content in my views. Something that I could configure in my Web.config file in a way similar to the following. <cdn> <add filetype="css" root="http://mycdn.mydomain.com/stylesheets/" /> <add filetype="js" root="http:/...

Disabling Registry Redirection for a Registry Key on x64 Platform

Hi, On 64-bit platform, installed-check is getting failed for SQL Reporting Services and Add-ins. Installer is checking the registry entries under path "HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\Instance Names" and registry entry is available out there but since MS SQL Server is a 64-bit application, therefore, the inst...

Apache+Tomcat6+Struts2 redirect problem

I'm using apache on 80 port, that forwarding all requests on tomcat6 on port 8080. In my application I'm using struts2 framework. In tomcat I'm using redirect from ROOT application to my application "MyApp". When I walk on the links on my site I see good URLs like www.mysite.com/order But when struts redirects me anywhere URLs take ...

How do I implement port redirecting/mapping on windows?

I am programming a web proxy that is installed on client machines (same machine as the web browser). I would like for all traffic that is web traffic to get redirected into my proxy server. I am using a windows operating system (XP, Windows 2003, Windows 2008, Vista, Windows 7). What would I need to do, to redirect all internet traff...

Logical AND in htaccess modrewrite ?

This is my htaccess file RewriteBase / RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] RewriteCond %{REQUEST_URI} !^/chat/ RewriteCond %{REQUEST_URI} !^/m/ RewriteCond %{REQUEST_URI} !^/__admin/ RewriteCond %{REQUEST_URI} !^/gzip_headers.php RewriteCond %{REQUEST_URI} !^/phpfreechat/...

SharePoint Url in Webpart with Alternate Acess mapping

Hi, I have deployed my web part to a SharePoint environment having alternate accessing mapping configured. The public Url is https://sharepoint.com and the internal url for the same is http://internal-sharepoint.com On one button click, i need to redirect the url to the same page with some additional parameter in query string. I trie...

Redirect folder link to xml file

So I recently switched away from wordpress. Wordpress keeps all of it's feed URLs at /feed/. This seems reasonable to me, so I never signed up for a site like feedburner. Now I'm using an entirely new blog software, and it puts the feed at /atom.xml. How can I use the .htaccess file to redirect requests to /feed/ to /atom.xml? Or maybe...

slow update after pipe, stout, stderr redirection and saving file at the same time

I'm saving the output of a command after redirecting its stdout, stderr and passing it through a pipe. Things seem to be working fine but I'm noticing a delay in bash screen update which is almost <= 37 seconds. The same delay I see when checking output file with "tail -f output-ping.txt". I've never seen such a delay earlier even with...

curl --form file redirection

Hello, This works: curl --url http://someurl.tld --form "apikey=39485730" This does not: curl --url http://someurl.tld --form "apikey=<keyfile" Error: Invalid API keys The cURL manual (http://curl.haxx.se/docs/manpage.html) explicitly states -F/--form (HTTP) This lets curl emulate a filled-in form in which a user has ...

CPanel PHP Website - cleanup hijack scenario

Someone had changed my .htaccess, and I have removed that. But I still have phantom pages like this: http://www.biztalk-training.com/?puqr=usoe I don't have any 404.php, 404.shtml, or 404.html pages. I checked CPanel for redirects on 404, and it looked empty (but would have created a 404.shtml if I filled it in). If I type in some...

Ruby On Rails - redirect_to(:back)?

I have a page that lists all of the projects that has sortable headers and pagination. path: /projects?order=asc&page=3&sort=code I choose to edit one of the projects path: projects/436/edit When I click save on that page, it calls the projects controller / update method. After I update the code I want to redirect to the path that...

Django view does not redirect when request by jQuery.post().

hi, I've got a menu to switch languages in my Django template. I call, via POST, the "/i18n/setlang/" view shown below to change the language setting. When I use a html form the user is redirected as expected, but when I use jQuery.post(), it is not. What am I missing? Thanks Call to the view using jQuery.post(): $.post("/i18n/setla...

How to redirect myurl.com/targeturl.com to to myurl.com/?site=targeturl (PHP/Apache/Linux)?

Hi, I'm writing a website that allows people to asses a web page's readability (Flesch-Kincaid Reading Ease, thank kind of thing). Ideally I'd like the user to be able merely to preceed the target URL with mine (like many mirror sites do), and hey presto they can see the results. I'm guessing it's got to be done with mod_rewrite, but...

The '<' operator is reserved for future use (PowerShell)

I am using powershell and am trying to run the following command: .\test_cfdp.exe < test.full | tee test.log test.full is a script that mimics command line inputs to test_cfdp.exe. However, I get the following error: The '<' operator is reserved for future use. Is there another way (i.e. cmdlet) I can use to get this command to wo...

Is it possible to cout to terminal while redirecting cout to outfile?

I'm running a program and redirecting cout to an outfile, like so: ./program < infile.in > outfile.o I want to be able to read in an option ('-h' or '--help') from the command line and output a help message to the terminal. Is there a way I can do this but still have the regular cout from the rest of the program go to the outfile?...

Would this redirect script open me up for code injection or remote file inclusion?

Recently I ran across a blog article about using PHP scripts to redirect affiliate links. It got me thinking whether this script was safe or not. I've heard that using the $_GET variable can lead to a vulnerability. Any suggestions would be appreciated. Would checking the input for alphanumerics and the hyphen ('-') be enough to guar...

"reverse" authorized pages being redirected to login

So, I have a page that I want only anonymous users to see, and authenticated users to be redirected. So, like this: <location path="Login_ForgotUserID.aspx"> <system.web> <authorization> <allow users="?" /> <deny users="*" /> </authorization> </system.web> </location> The problem is, whe...

At what point in the ASP.NET page/app life-cycle should I redirect a user based on his country?

We have a web app where we need to redirect customers from .com to .co.uk domains based on the geolocation of ther IP address. When/where should I do this? The content will change slightly based on their location, but I think I can handle that OK. However, if anyone has any comments on the best way to handle this, I'd like to hear those...

How to send post data to any url (with redirection) without using curl or fsocket in php

Hello, I would like my page to be redirected to new url with some post data being sent to it. I don't want to use curl or fsocket because they will not redirect user to that new url. Is there any alternative for header("Location: blahblahblah"); to send post data? I tried with document.form.submit(); and it worked but some users are fa...