Hi Brett, Yes, there was some text output before redirection. Removing it did solved the problem. Is there any way that I could use htaccess on single file too? I tried <Files> directive but it didn't work. Thanks, Abhi.
Brett Bieber wrote: > On Tue, Feb 23, 2010 at 9:18 AM, Abhishek Gupta <[email protected]> wrote: > >> Hi, >> I am trying to implement CAS authentication on a single file which is a php >> script. I tried using cas module using <Files> directive in .htaccess file >> but it didn't work though it works for a <Directory> directive. So I tried >> CAS authentication adding a few lines directly into the php script. It works >> but it shows the following page first and I have to manually redirect it to >> CAS authentication page. The server is running RHEL4, and I am using >> CAS1.0.1 >> Is it some compatibility issue or something additional I have to do? Also >> why is <Files> directive not working? >> Thanks, >> Abhi. >> >> Message displayed on browser: >> >> CAS Authentication wanted! >> >> You should already have been redirected to the CAS server. Click here to >> continue. >> >> ________________________________ >> phpCAS 1.0.1 using server https://fed.princeton.edu:443/cas/ (CAS 2.0) >> > > I would look in your server's error log files, or turn display_errors > on. You probably have text output being sent to the browser before the > header('Location:…'); call for the redirect. There can't be any output > before the redirect happens, unless you turn on output buffering > (ob_start()). > > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
