Apache doesn't pick up .htaccess
Posted 09 April 2006 - 05:47 PM
"AccessFileName .htaccess" in httpd.conf and was just wondering if there are any obvious points I'm missing?
Thanks for any help
Posted 09 April 2006 - 06:07 PM
The following is what you'll want to look for:
# # 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
Now save your httpd.conf file and restart Apache. You should beable to use .htaccess files.
Posted 09 April 2006 - 06:18 PM
My httpd.conf is the WAMP version, would that have changed any major settings needed for .htaccess to work?
Posted 10 April 2006 - 09:21 AM
Now save the httpd.conf file and restart Apache. Also make sure your .htaccess folder in the root of the folder thgat stores your files to be seen by the webserver.
Posted 10 April 2006 - 10:49 AM
Ive uploaded my httpd.conf at [a href=\"http://www.stephenknox.com/httpd.conf\" target=\"_blank\"]http://www.stephenknox.com/httpd.conf[/a] if someone would be so kind as to look at it!
Other than that, I'm completely stuck with this problem.
Posted 10 April 2006 - 10:59 AM
If so then Apache hides these files. If you want it to be viewable then commnent out the following:
<Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files>So its just:
#<Files ~ "^\.ht"> # Order allow,deny # Deny from all # Satisfy All #</Files>Now save and restart Apache. You should be able to see your .htaccess file listed with all your other files.
Even though yoiur .htaccess file is not viewable APache will still use the .htaccess file it just hides it from users for security purposes as it can contain private information which you may not want your visitors to see.
Posted 10 April 2006 - 12:21 PM
I set up the following .htaccess:
RedirectMatch page1\.html page2.html
but when I go to localhost/test/page1.html (the .htaccess is placed in /test), it doesnt redirect to page2
Thanks for your answers so far,
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users