How can I activate .htaccess?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How can I activate .htaccess?

Postby onetwo » 09. February 2009 04:40

Hi Friends,

I did not find a forum to investigate, but I'll ask:) .htaccess about doing some things, but apache does not give any response. .htaccess is that a point will activate?

If you appreciate help ...
onetwo
 
Posts: 1
Joined: 09. February 2009 04:35

Re: How can I activate .htaccess?

Postby Izzy » 09. February 2009 04:43

.htaccess is activated by default in XAMPP's Apache.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: How can I activate .htaccess?

Postby Nobbie » 09. February 2009 09:54

In case you do not use Xampps Apache (or created an Alias outside of DocumentRoot, or a different DocumentRoot for VirtualHosts etc.), you have to specify the "AllowOverride" directive to enable changes in .htaccess. This directive is part of the the <Directory ...> Block.

Example:

If you specify

Code: Select all
<Directory c:/srv/www/htdocs>
...
AllowOverride All
...
</Directory>


.htaccess in c:/srv/www/htdocs (or any subfolder) may override all directives of httpd.conf

See http://httpd.apache.org/docs/2.0/en/mod ... owoverride for detailed information.
Nobbie
 
Posts: 13179
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 160 guests