When a user is not logged in and tries to access an page that requires login, what is the correct HTTP status code for a redirect to the login page?
I don't feel that any of the 3xx fit that description.
10.3.1 300 Multiple Choices
The requested resource corresponds to
any one of a set of representations,
each with its own ...
I'm going to add my own user control LoginBox to my MasterPage.
I want to just refresh the page the user is currently on when he logs in to the system. How can I accomplish this?
...
I have a python script and I want to use the output of it to be the input of other C program. I want to use pipelines, sintax would be:
python_script.py | C_program
but I don't know how to redirect the pythons stdout to C stdin
...
Hi,
Apologies if SO is not the right place for this, but there are 700+ other SEO questions on here.
I'm a senior developer for a travel site with 12k+ pages. We completely redeveloped the site and relaunched in January, and with the volatile nature of travel, there are many pages which are no longer on the site. Examples:
/destinatio...
I use TempData["message"] which internally uses session.... It works for me but when i do a
return RedirectToAction("Create"); my other values are not restored because i am redirecting to Create view... Any suggestion how to retain the values of textboxes in the view.....
if (!regrep.registerUser(reg))
{
TempData["mes...
Hi,
I have apache installed on one of my server on two different ports, all http requests are handled by the apache on the default (80). Now I have a subdomain for a domain and I want the request for the sub domain to be handled by the apache on the other port (10024).
I've tried using
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^sub...
The past few days I've been working with setting up an Apache server on Windows. The server is supposed to host several .htaccess files, each redirecting (or, in some cases, proxying) to different hosts.
I want to create tests for these redirectons, and the solution I'm currently considering is a CGI script running on the same server, ...
I'm getting a redirect loop when using Login Toboggan. It doesn't happen all of the time and I think I've narrowed it down to something with the session, specifically the active-tabs[last-active-href] value.
Since it's intermittent, I was able to print out a session of a working copy and a non-working copy. Here are both:
WORKS -- Arr...
I am very new to CodeIgniter, but have been programming PHP for ages. I'm writing some software at the moment and using CI for the first time with it.
The default controller is set to the first controller I want to action call 'login' (the controller is login.php, the view is login.php. When the form is submitted it calls the 'authent...
How would you go about redirecting in ASP.NET MVC to take into account some external URL rewriting rules.
For example:
What the user enters: http://www.example.com/app/route
What ASP.NET MVC sees: /route
What I want to redirect to: http://www.example.com/app/other_route
What actually happens when I do a simple RedirectToAction: http:/...
I have a simple page structure like below
/directory/subdir_1/index.php
/directory/subdir_2/index.php
....
(there are no other files in these directories)
is it possible to have 'fake/pretty' urls for the above files as below?
/directory/subdir_1
/directory/subdir_2
...
so this path would show whether the visitor typed that,/dir...
I need a PHP script running on my server to frequently request a web page.
I thought of using the PHP header function combined with a meta refresh tag, but that won't work because the header will redirect to the URL immediately, and the meta refresh will never execute.
<?php
header('Location: http://www.example.com/');
?>
<html>
<META...
I have a problem creating authentication part for my application.
Below is the simplified version of my controllers.
The idea is that the MY_controller checks if session with user data exists.
If it doesn’t, then redirects to the index page where you have to log in.
MY_controller.php
class MY_Controller extends Controller {
function...
i have this line
Redirect /?page=cms_page&id=12 http://www.domain.dk/case
when i type ?page=...... its not will work if i only use page=..... its will work fine but not the user type
domain.dk/?page=cms_page&id=12
So now i ask you guys what have i make wrong?
...
I am returning this from a json result from a controller,
var genericResult = new { redirectUrl = Url.Action("Create", "Registration")
, isRedirect = true };
return Json(genericResult);
but when i inspect through firebug,
{"redirectUrl":"/","isRedirect":true}
if (data.isRedirect) {
...
I recently made the jump from php 5.2 to 5.3, and I've noticed that it will now allow redirects (ie. headers) after writing content, presumably through some sort of automatic output buffering.
I used to think it was annoying the other way... but this makes it much harder to track down errors during development. Is there a way to turn t...
Hi folks,
I have some Servlet that explicity sets the character encoding and redirect to some servlet
class Servlet1 extends HttpServle{
void doGet(..... ){
// ...
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8"):
//......
response.redirect(servlet2);
}
}
clas...
I have this problem and it took me some time for me to understand it, so I thought it could save some time to others if I post it here for reference. It doesn't really require an answer, though if someone can explain it or fix it it would be welcome !
Using Struts 2.1.8, I have some actions configured like that :
<action name="ReportO...
The deal is that I have a ZF site for which root directory is /public. How should I go about redirecting to a subdirectory if I want to do next?
I want to have another subdirectory under /public/ that would not be linked to a main website in any way except it using save ZF. Lets say I have this: /public/newsite/ which will include a com...
Hey folks,
I've got a local install of Movable Type, which is used as a development version, and a remote install which is on the web. When I edit a page or template and then publish it in my local version, I am then brought back to the edit page after it has published. However, when I do this on the remote version I am redirected to th...