redirect

Firefox: visually flag redirect in address bar

I'm wondering if there's any way to have Firefox 3 (or IE 7 or safari 3.1 or Opera) flag that a redirect has occurred (i.e. any deltas between the hyperlink or URL entered into address bar, and the page you land on), whether you've arrived from a hyperlink or entering URL into address bar. I've googled some, looked at the linker addon, ...

Redirect all requests to ASP.NET MVC on IIS6

Hi, I am probably overlooking something really simple here but I am trying to redirect all bad URLs to an action that filters the URL based on conditions and then either 301 redirects to a suitable page or issues a 404 page. To this end I have a route like this at the end of my route table: routes.MapRoute("Error", "{*url}", new { con...

Redirect Stdin and Stdout to File

I'm currently the Teaching Assistant for an Introduction to C class. The class is being taught using Visual Studio, but when grading I just use a simple Windows batch script to process all the assignment submissions, compile them, run them on a test file, and redirect the output to a series of text files I can print out, mark up, and han...

Domain redirection to the same page and Google

We developed a website for a client and he has purchased the .com, .net, .info versions of the domain. Is there any way to redirect all to the same page without being considered by Google as duplicated content and therefore penalized in the ranking position? ...

Generic htaccess redirect www to non-www

I would like to redirect www.example.com to example.com. The following htaccess code makes this happen: RewriteCond %{HTTP_HOST} ^www\.example\.com [NC] RewriteRule ^(.*)$ http://example.com/$1 [L,R=301] But, is there a way to do this in a generic fashion without specifying the domain name? ...

Is there a possible "race condition" when using Asp.Net MVC TempData across a redirect?

When using TempData, my understanding is that it will keep whatever you put in it around for only one request. So when using TempData to retain data across a redirect (in order to use the Post-Request-Get pattern), isn't it possible that some other request from the user could come into the server in between the response sending the redir...

Redirect to controller (but with a different master) using a catchall wildcard

I have a problem whereby I want to display a view differently (a different master page), depending on where it came from, but don't know where to start... I have several routes which catch various different types of urls that contain different structures. In the code snippet below, I have a product route, and then I have a partner site...

Can XFire SOAP server send HTTP 301 REDIRECT to client?

Is it possible to send a HTTP REDIRECT response from inside the XFire SOAP server instead of a regular response? I need this in order to redirect the client to another server based on some checking of method parameters. Also, is redirect handling something that major SOAP clients support? I know HttpClient does, but I'm not sure about ...

Best approach for redirecting a large number of old URLs to new URLs?

We are re-platforming for a client, and they are concerned about SEO. Their current site supports SEO friendly URLs, and so does the new platform. So for those, we are just going to create the same URL mapping. However, they have a large number of other URLs that are not SEO friendly that they want to permanently redirect. These do not f...

Bookmarked page redirect

I recently converted a site from asp to CF. Unfortunately, alot of the old users had the "homepage" bookmarked. www.thedomain.com/homepage.asp Is there a sort of catch all way I could redirect any traffic from that page to the current index.cfm? I would normally just delete those files, but the owner(s) wanted to keep it around for t...

How can I determine if a URL redirects?

If I have a URL (eg. http://www.foo.com/alink.pl?page=2), I want to determine if I am being redirected to another link. I'd also like to know the final URL (eg. http://www.foo.com/other_link.pl). Finally, I want to be able to do this in Perl and Groovy. ...

Redirects to default.aspx instead of "xxx.aspx" after logging into app using login control

Hi Thanks for going to answer my question. I have the folowing pages. login.aspx default.aspx xxx.aspx After logging into application default.aspx will be displayed. Now if the user is trying to open http://server/xxx.aspx?Id=1234 by specifying its URL directly in a browser, the login screen is displayed and after successfull login,...

URL redirects; for general purpose use, which is better: server-side or client-side?

Take a very simple case as an example, say I have this URL: http://www.example.com/65167.html and I wish to serve that content under: http://www.example.com/about UPDATE: Note that the 'bad' URL is the canonical one (it's produced by a CMS which uses it internally for linking), so "/about" is just a way of polishing it. I have two...

Can I tell Apache to do an internal redirect from PHP?

Is there any way, from a PHP script called from mod_php with apache, to tell apache to do an INTERNAL redirect to some other file? I do not want to read/require this file from PHP and spit it out, I think it'd be more efficient to pass this off to Apache. I believe this can be done with mod_perl and I'm curious if there's a way to do i...

Firefox 3 doesn't allow 'Back' to a form if the form result in a redirect last time.

Greetings, Here's the problem I'm having. I have a page which redirects directly to another page the first time it is visited. If the user clicks 'back', though, the page behaves differently and instead displays content (tracking session IDs to make sure this is the second time the page has been loaded). To do this, I tell the user's...

Busting out of an iframe using meta-refresh or javascript?

I basically have a page which shows a "processing" screen which has been flushed to the browser. Later on I need to redirect this page, currently we use meta refresh and this normally works fine. With a new payment system, which includes 3D secure, we potentially end up within an iframe being directed back to our site from a third pa...

.htaccess Redirections

Hi, I've been Googling around for .htaccess redirection information, but nothing I find is quite what I'm looking for. Basically, I want a solution that will take a site example.com and allow you to enter URL's like: 123.example.com ksdfkjds.example.com dsf38jif348.example.com and this would redirect them to: example.com/123 example....

HTTP status for functional redirect

Right now we've got web pages that show UI elements, and web pages that just process form submissions, and then redirect back to the UI pages. They do this using PHP's header() function: header("Location: /other_page.php"); This causes a 302 Found response to be sent; according to the HTTP 1.1 spec, 302 is for cases where "The reques...

How to show the visitor a moved web page AND return a 301 redirect HTTP response status code in Django?

When a webpage has moved to a new location, how do I show the moved web page AND return a 301 permanent redirect HTTP response status code in Django? ...

How-to: Proper redirect with Relative URLs ASP.NET

I have an authentication script (CheckLogin.aspx), and if any of the credentials do not match my application will redirect (via Server.Transfer) to the access denied page (forbidden.aspx). Each time my script runs,it gets an InvalidOperationException: Failed to map the path '/forbidden.aspx'. Here is a mockup of my applications file st...