redirect

Facebook connect dont redirect on logout

This is my code. <script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt; <script> FB.init({appId: '<?= FACEBOOK_APP_ID ?>', status: true, cookie: true, xfbml: true}); FB.Event.subscribe('auth.login', function(response) { window.location.reload(); window.location.href='http://www.site.com/ou...

redirect current page to download page in asp.net

Hi all, I have problem when try auto download in another page that already been specify. In current page, I have button to trigger to redirect page to download page, but I wish to download done automatic, even it don't done automatic. It can be done using link to download file. File name wish to download, transfer using querystring, co...

htaccess rewrite

I use right now: RewriteEngine on RewriteRule !^index.html http://samedomain.com [L,R=301] so that all inquires go the http://samedomain.com ...(usualy it would load index.html) the index.html is excluded so it does not come a endless loop. i can open http://samedomain.com/index.html FINE.. it does not come redirected. And other re...

OpenSSO proxy setup error

I am trying to setup an SSO app with an IP and SP much like described in tutorial https://wikis.forgerock.org/confluence/display/openam/SAMLv2+IDP+Proxy+Part+1.+Setting+up+a+simple+Proxy+scenario However, I am stuck at the test provided at the very end: my SP is not redirected to my IP. Instead, I get the following error: ERROR: Error...

301 redirects to migrate site to Code Igniter

Friends, I am working on a website in CodeIgniter. I want to launch it soon and after launching I don't want to loose the current indexes in Google. So I want to permanently redirect the existing website's URLs to the new SEO friendly CodeIgniter URLs. Existing website's URL: www.myapp.com/main.php?{param1}={value1}&{param2}={value2}&p...

Redirects in Drupal for index.php and home in htaccess

Hi All, I have been trying to create redirects for /home and /index.php to the site's base url. I have tried following rules in htaccess but without any effect RewriteRule ^(.*)\index.php$ $1 [R=301,L] RewriteRule ^home$ / Im new to it so kindly bear with me if its a trivial question for the experts Thanks in advance to the wonderf...

redirect or pipe file to standard out

How do u redirect a small(<20k) file to be piped to another program, so that it is never written to disc. You could use cfront and gcc as an example. Any example will do as long as you are redirecting something that normally outputs a file to something that usually accepts a file. You could could use any script or shell, but I would pr...

How can I easily redirect the console output in a NSTextView?

Suppose you have the code of a Cocoa app which logs its own messages through NSlogs and printfs to the Console output. My goal is to redirect all this output into a separate NSWindow in a NSView. How can I achieve this in a way that minimizes the amount of code to rewrite makes it possible to revert back maximizes the reuse of written...

htaccess 301 redirect certain URL pattern

Hi I'd like to redirect: http://site.com/FOO/BAR/BAZ to http://site.com/FOO/NEW/BAZ so, subsitute the second segment in my URL with a new one. ideally I'd like to use HTACCESS and a 301 as these pages have permanently moved. The URL structure will not change. Ideally there won't be a query string, but doesn't matter too much is ther...

What's the best HTTP status code for a redirect from / to /home?

I have a web application where the requested URL is used in a REST-like fashion. However, if no URL is entered (just the domain) I re-direct to http://www.example.com/home and then my home controller is loaded. What HTTP status code should I use for this re-direct? This process takes place in my index.php script using a simple header('L...

mod_rewrite different URIs to one location

Hi guys, I'm struggling with probably quite simple mod_rewrite taks. This is the directory structure I have: root\ translations\ en\ (contains various subfolders with files, 2 levels deep) fr\ (contains various subfolders with files, 2 levels deep) what I want to do is to point various dynamically created URLS to those specific...

Use mod_rewrite to redirect from folder to index.asp file, if such file exists

Hi there, I'm using Rackspace's Cloud Sites as a webhost and, for a site that uses both PHP and ASP, they have a funny setup. On our setup, PHP is the default technology, and so the site by default runs Apache, until it hits a URL ending with the .asp extension. That means this URL: www.site.com/folder/ Will not automatically load: ...

RESTful Rails Put/Post fail problem

So using Rails' REST resources routing, we end up with auto-generated routes that coordinate with Controller actions (I'll refrain from ranting about how I've replicated models twice, as well as relationships twice (as models and then as (often) nested resources; as well as actions twice (as I limit my resources with onlys/excepts where ...

php login: issue with header

I'm trying to make a login page using php, but when I use header() to redirect to another page, my user/pass check on my database somehow fails. Am I doing something wrong? Also, I know I'm missing security guards, I'm implementing in steps since I'm still rather new to PHP. But some tips and suggestions would be appreciated! $dbc = my...

Php redirect and seo

I have a client that uses Google Base with their eCommerce store. They want to redirect all of their specific product links (i.e. white-large-shirt.htm, red-medium-shirt.htm) to the configurable url (i.e. shirt.htm). This is so the customer when clicking on the white-large-shirt link in Google Base can be redirected to the page where t...

CakePHP and .htaccess: how to redirect url with query string

I wanted to redirect this url from /main.php?page=pages&id=gettingpaidfortakingsurveys to /main/pages/getting-paid-for-taking-surveys. Thanks! [UDPATE] i tested it on my existing cakephp .htaccess and it didn't work. <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^/main.php?page=(.+)&id=(.+) /main/$1/$2 [NC] RewriteRule ^$ ...

How can I redirect JNI console output to Eclipse Console view, when Eclipse plugin uses JNI?

Greetings, I have an Eclipse plugin (A) which has a dependency on another plugin (B). Plugin B is simply a wrapper around a jar, which contains a native dll, and performs jni functionality. Given this setup, I have the following code in A's Activator class's start method: MessageConsole jniConsole = new MessageConsole("Opereffa Output...

htaccess redirection from domain.com to sub.domain.com while maintaining file access to folders

I'd like to redirect a website from http:// domain.com & http:// www.domain.com to http://v2.domain.com, while maintaining access to http:// (www.)domain.com/images/* I've tried several methods but somehow I can no longer access the /images folder anymore. P.S: both subdomain & root has different content/CMS. Any ideas as to how to im...

App engine - redirect to static content

Sometimes its the simplest things that trip me up. I have an application running on App Engine that utilizes subdomains. I'd like to redirect to different HTML pages depending on weather a subdomain is being used or not. For example, if a user tries to sign up for a new account through a subdomain, this doesn't make a whole lot of sen...

.htaccess redirect doens't work correctly

Hi, I'm using a .htaccess to get all documents from an old site to the new one. The old site doesn't support PHP or mod_rewrite. I tried the following code: Redirect 301 / http://www.new.com/archive/ I requested " http://www.new.com/archive/index.html" Which resulted into http://www.new.com/archive/old.com/olddir/&amp;&amp;&amp;/&am...