Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: A weird issue with admin login and logoff

date posted 4th May 2008 20:44

On Sunday 04 May 2008 19:30:05 Alex Libby wrote:

> When I put in the URL for the admin bit (say, for example -
> http:///catalog/admin/, it goes straight through to the
> index.php page for Admin, without seeing ther login.php screen. Forcing the

Apache (assuming it's Apache, but other HTTP servers are broadly
similar) will usually proffer the first "suitable" page in the absence
of a specific file name.

I.e. it will look for index.html, then index.htm, then index.php, and so on;
this is part of the configuration and can normally be overridden in
a .htaccess file:
http://fragments.turtlemeat.com/htaccess.php

I assume that the index.php page in OSC would normally check for a cookie
or some such and redirect to login.php if there isn't one.

> Any ideas anyone? I don't really want to have to be forced to password
> protect the folder as a get out - I can do it, but it just seems an easy
> way out...I am using osCommerce 2.2 RC1.

A DirectoryIndex directive in .htaccess might do the trick, but personally I
would first check the code in index.php to see what it /ought/ to be doing.



Messages by Day
May 31st 2008
May 30th 2008
May 29th 2008
May 28th 2008
May 27th 2008
May 26th 2008
May 25th 2008
May 24th 2008
May 23rd 2008
May 22nd 2008
May 21st 2008
May 20th 2008
May 19th 2008
May 18th 2008
May 17th 2008
May 16th 2008
May 15th 2008
May 14th 2008
May 13th 2008
May 12th 2008
May 11th 2008
May 10th 2008
May 9th 2008
May 8th 2008
May 7th 2008
May 6th 2008
May 5th 2008
May 4th 2008
May 3rd 2008
May 2nd 2008
May 1st 2008


Messages by Month
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000