Welcome to WebmasterWorld Guest from 18.104.22.168
I've tried various things, and just did a test to turn indexing ON in a known directory.. in my .htaccess file I merely had:
Nothing, still getting 403 error.. As well in a directory which did have it automaticly on, tried:
Yet no changes. So again, I'm a bit clueless on what aproach to take. What could cause a htaccess file not to operate? What would be the best way to test things?
My master goal is to develop a restriction over a region (downloadable files) that can only be accessed if coming from a PHP file.
He also suggested cranking up the font size so it was easier to see errors.
I cranked up to large font but it took testing a few lines at a time before I finally found the cause. Of course, it was a silly stupid typo in an area of the file I was sure was ok.
Does htaccess require any sort of tags or such? Or does for example "Options -Indexes" nothing more nothing less all it takes? Which is only a file 16 bytes in size.
I'm not sure what you are trying to accomplish. Do you just want to allow the index of your directories to be shown? Usually that is the default so you wouldn't need an htaccess file for just that.
<added> check this thread [webmasterworld.com] maybe it will help
This thread [webmasterworld.com] describes the settings necessary to enable mod_rewrite (and .htaccess by inclusion). I suspect your host is configured with AllowOverride none, in which case, .htaccess files are ignored.
All I did was change:
and I thought it started working fine but, it gives me this sort of responce:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, *EMAIL* and inform them of the time the error occurred, and anything you might have done that may have caused the error.
If anything I'll simply copy the laptop config file n replace with desktop config file. No worries about compatability copying desktop->laptop is how I got it on the laptop in the first place.
But anyway, now that I have that step behind me I'm trying to practice password protecting a directory.
In various readings I have done I understand a person needs as follows for htaccess:
and htpasswd I understand very easily and thats not an issue.
AuthName I understand what thats about. AuthType I've always read leave it to say Basic. require user I think I understand, just set that to be whatever username you desire to be allowed. But the first AuthUserFile... I get what their saying, but I do not get how to know what is right and what is wrong.
Again I'm workin offa localhost... so when my directory, and ht(access/passwd) files are as follows:
C:\Program Files\Apache Group\Apache\htdocs\test1\.htaccess
C:\Program Files\Apache Group\Apache\htdocs\test\.htpasswd
What am I to expect for AuthUserFile?
I also from time to time make Apache available to others using dyndns. so would that at all change what I would use for AuthUserFile? Such as myUserName.dyndns.org