Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot enable .htaccess

Status
Not open for further replies.

paradoxkp

MIS
Mar 2, 2003
5
CA
Hello,
For some reason my server completely ignores the .htaccess files within my directories. My .conf file is setup to Allow all:

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

I dont know what else to do! Help!
 
Also, does the server only see ".htaccess" files... or can there be a prefix like "everest.htaccess". Cuz if its just .htaccess how do you rename it to that in Windows?
 
You configure the name of the file with the [tt]AccessFileName[/tt] directive. Change it to whatever you want, and it should work fine. //Daniel
 
Hi mate,

To name a file .htaccess in windows, open notepad > save as > .htaccess Make sure that all files is selected in the bottom dropdown on the save dialog.

As for configuration, have you got any other AllowOverride directives that do not have either all or AuthConfig?

If you do decide to change the name, make sure that you also alter the regex that stops people from viewing it in a browser.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
I don't know why it wont work. I dont have anything else that would change the allowoverride option
This is my exact htdocs directory thing

<Directory &quot;C:/Program Files/Apache Group/Apache2/htdocs&quot;>

#
# Possible values for the Options directive are &quot;None&quot;, &quot;All&quot;,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that &quot;MultiViews&quot; must be named *explicitly* --- &quot;Options All&quot;
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# # for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be &quot;All&quot;, &quot;None&quot;, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

Can someone show me what theirs says?
 
Have you changed the filename or the [tt]AccessFileName[/tt] yet? //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top