Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have got a default ISP installation. The problem I have encountered is .htaccess isn't taken into account when existing files are requested. I added "sdfsdfs" in my .htaccess, so when I request something like /catalogue/index I do get an error. However requesting /images.test.png simply opens it as though I didn't mess anything up.

share|improve this question

closed as not a real question by mdpc, Bryan, Scott Pack, Tom O'Connor, Michael Hampton Dec 18 '12 at 22:05

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Where is your .htaccess file in your website structure? What does it look like? What is the "sdfsdfs" you mention? –  mdpc Dec 18 '12 at 20:15
    

1 Answer 1

.htaccess files have been used very effectively for things like what you are asking.....but they have to be configured properly and properly located in the website hierarchy.

The .htaccess file is ONLY effective starting at the directory level you physically place the file in and will apply to sub-directories if it is not overridden by another .htaccess file.

You might be looking for the "directory" or "location" directives that you could place in the appropriate httpd.conf file as well.

share|improve this answer
    
I'd further strongly suggest that you take a look at the Apache documentation on httpd.apache.org –  mdpc Dec 18 '12 at 20:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.