Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP

.htaccess

Hi, I'm getting this error in apache when I'm visiting the http://localhost/test/shirts/.

"[authz_core:error] [pid 10700:tid 1572] [client ::1:53791] AH01630: client denied by server configuration: C:/wamp/www/test/shirts/.htaccess"

Here's my code on .htaccess: "RewriteEngine On RewriteRule ^/shirts/$ /test/shirts/shirts.php"

What is the possible wrong with my .htaccess or on my apache server ?

Hi, have you checked if the following directives are set in your apache configuration file for the document root directory?

AllowOverride All Order allow,deny Allow from all

if not, add them to the <Directory C:\wamp\www> and restart the Apache server. If it fails maybe you can attach your apache httpd.conf file.

Cheers!

1 Answer

AJ Singh
AJ Singh
18,769 Points

Miguel

How do I set directives in my apache configuration file for the document root directory?