Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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?