redirect

404 Redirect to Sitecore page allows for Extensionless URL

I am using Sitecore as a CMS solution. Recently, we decided to add redirect capability to our website for errors. In Sitecore, I have created two content pages, one to handle Server errors and another to handle 404 errors. I implemented the server error with basic sublayouts without any code behind. On the other hand, the 404 page had a ...

How to detect if the user is logout in php?

After the user successfully logged in, I store login = true in database. But how do I check if the user logged out by close the browser without click the logout button? And somemore, how do I redirect user who has been inactive for 10 minutes to login page? I am using php and mysql. Any help would be appreciated. EDIT: Sorry if my ques...

How to redirect a URL path in IIS?

In IIS 6.0, is there an easy way to re-direct requests to a folder to another folder, while preserving the rest of the path. e.g. If I have moved the content from: mysite.org.uk/stuff to stuff.mysite.org.uk/ Can I automatically redirect requests for specific pages like mysite.org.uk/stuff/countrybriefing/tanzania/travel.html to stuff....

.htaccess file redirect if not exists, remote file upload

Server A - application Server B - static media from uploads, no app App on Server A processes the upload, validates and posts a job to convert it, after the conversion it's moved to Server B via copy (mounted drive) . Then the media file is loaded via a player on the page on Server A. I want to load the file via the remote url http:/...

RoR: AuthenticatedSystem not properly redirecting back on Safari

I've been banging my head against this one for a couple days now: I've got a RoR app using AuthenticatedSystem to require authentication for some of the resources. A before_filter checks to see if the user has logged in. If not, it grabs the request.request_uri and puts it in a session variable (session[:return_to]), then sends the user...

problem with fetching data from a server

Hello every one, I am getting a problem while fetching data. Its giving CFHTTPMessageGetResponseStatusCode(response) as 302 . can any one help me to solve this problem. Thanks in advance, ...

redirect from asp.net page

hi, In asp.net 3.5 using vb i would like to go to another page in my application when the user clicks a button. what is the command for doing this? Thank you ...

Data from web-page to a text box in application?

Friends, I saw a program(RAPGET) which downloads a file from RapidShare for the given link? I like to design a program like this which gets the information about weather-forecast from a web-page and it should display in the textbox in vb6? Help me to do this? ...

outputstream response.redirect binary

Hello guys, I need from a c# code to make a redirect and pass data to it. Can sy point me the right direction? how to write binary data on an httpcontext, redirect it to http://myserver/hello.aspx and take back this binary on the page load of http://myserver/hello.aspx thx in advance ...

Redirect to Page when not paid

I am using MVC with C#. I need to take the user to a payment page if the user didn't pay for an item. I need to have a common class to check this functionality and redirect to payment page. Like inheriting all the controllers to a Base Controller. In that base controller i have to check this payment status for some controller and action...

FF3 redirects from remote IP to localhost after form submission

I'm accessing another computer on the network, using the local ip (eg. 10.1.1.59:8080). Login page loads nicely but after form submission firefox (3) redirects to localhost instead of remote IP. IE6/7/8 give no problems so it seems to be a firefox problem. Any ideas? ...

Strip specific parameteters when redirecting with Mod-Rewrite

I have a pretty complex RewriteRule where I need to check if certain parameters are present in QueryString and then redirect to the same URL but with those parameters stripped. How can I remove some parameters and preserve the rest? RewriteCond %{QUERY_STRING} color=red RewriteCond %{QUERY_STRING} status=contiue RewriteRule ^(.*)$ /$1?...

Rails Throws Error When Using redirect_to :back

Hello, Whenever I use: redirect_to :back in my Rails controllers, I get the following error: undefined method `object_url' for SubmissionController:0xb7a37764 I'll paste the application trace below as well: /usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/polymorphic_routes.rb:112:in __send__' /usr/li...

Response.Redirect not always redirecting

We have a simple Response.Redirect on a page that is working inconsistently (IIS 6.0). Most of the time it redirects correctly, but we're getting some users that are complaining that instead of redirecting, they are getting the "302 Object moved to here" page. The page displays the header information with the correct location. If you cli...

How to use htaccess to redirect all but one subdirectory

It's been a while since I've messed with .htaccess and I can't seem to get this quite right. I have a site, say example.com, where I want example.com/* to redirect to example.com/collector.html except for URLs under the subdirectory example.com/special, which I want to continue working. For example: example.com/page.html should redire...

Is there a way to redirect the browser from the bootstrap in Zend Framework?

I need to redirect according to some conditions in the bootstrap file. It is done AFTER the front controller and routes are defined. How do I do that? (I know I can simply use header('Location: ....) The point is I need to use the Router to build the URL. ...

Redirecting a Directory to a Script on Apache

So I'm playing with a script that makes it super easy to mirror images off of the web. The script works great (based off of the old imgred.com source, if you've seen that) problem is, it looks a little clunky when using it. Currently, in order to use the script, you go to a url like: http://mydomain.com/mirror/imgred.php?Image=http://o...

301 Redirect directly in HTML file

I have changed some file names on my web and now I want to make "301 Permanently Moved" redirect from the old files to the new ones. The problem is that my web is made completelly by static html pages and all 301 redirect tutorials decribe how to do it in PHP, ASP, htaccess etc. I would like to write the redirect directly into the old h...

Redirect loop during http:// to https:// redirect

I am trying to force a page to be run under SSL, so I have implemented the following on page_load: if (!Request.IsLocal && !Request.IsSecureConnection) { Response.Redirect(Helper.GetInstance().SSLBaseURL() + ScriptName()); } For some reason this is ending up in a loop. Earlier today, I checked Request.Uri....

redirect in a new window

Hello all, For a banner management system i use a header("Location: http://www.awebsite.com"); to redirect to the proper website. Is it possible to force this header script to open in a new window? ...