Hiding index.php not working

Hi,

I enabled it the main config file.

put the .htaccess file with the correct code.

I’m getting “not found” errors when loading pages.

This is my server config:

LoadModule alias_module modules/mod_alias.so

LoadModule authz_core_module modules/mod_authz_core.so

LoadModule authz_host_module modules/mod_authz_host.so

LoadModule autoindex_module modules/mod_autoindex.so

LoadModule deflate_module modules/mod_deflate.so

LoadModule dir_module modules/mod_dir.so

LoadModule env_module modules/mod_env.so

LoadModule expires_module modules/mod_expires.so

LoadModule filter_module modules/mod_filter.so

LoadModule headers_module modules/mod_headers.so

LoadModule log_config_module modules/mod_log_config.so

LoadModule mime_module modules/mod_mime.so

LoadModule rewrite_module modules/mod_rewrite.so

LoadModule setenvif_module modules/mod_setenvif.so

LoadModule status_module modules/mod_status.so

LoadModule vhost_alias_module modules/mod_vhost_alias.so

ServerName localhost:80

ServerAdmin admin@localhost

ServerSignature Off

Listen 80

AcceptFilter http none

HostnameLookups Off

ExtendedStatus Off

ErrorLog logs/error.log

ErrorLogFormat "[%t] [%l] %7F: %E: %M"

LogLevel error

AddHandler cgi-script .cgi .pl

LoadModule php5_module /.sys/php/php5apache2_4.dll

AddType application/x-httpd-php .php

PHPIniDir /.sys/php

<Directory />

&lt;IfModule setenvif_module&gt;


	SetEnvIf Request_URI &quot;^/w00tw00t&quot; BLOCK


	Require env BLOCK


&lt;/IfModule&gt;


Options -Indexes +FollowSymLinks -SymLinksIfOwnerMatch


Require all granted


AllowOverride all

</Directory>

<Files ~ "^\.ht">

Require all denied

</Files>

<IfModule alias_module>

Alias /adminer /.sys/adminer


&lt;Directory /.sys/adminer&gt;


	Options All


	AllowOverride AuthConfig


	Require all granted


&lt;/Directory&gt;


Alias /apc /.sys/apc


&lt;Directory /.sys/apc&gt;


	Options All


	AllowOverride AuthConfig


	Require all granted


&lt;/Directory&gt;


Alias /memcache /.sys/memcache


&lt;Directory /.sys/memcache&gt;


	Options All


	AllowOverride AuthConfig


	Require all granted


&lt;/Directory&gt;


Alias /mongodb /.sys/mongodb


&lt;Directory /.sys/mongodb&gt;


	Options All


	AllowOverride AuthConfig


	Require all granted


&lt;/Directory&gt;


Alias /phpinfo /.sys/php/info.php


&lt;Directory /.sys/phpinfo&gt;


	Options All


	AllowOverride AuthConfig


	Require all granted


&lt;/Directory&gt;

</IfModule>

<IfModule deflate_module>

AddEncoding x-compress Z


AddEncoding x-gzip gz tgz


DeflateCompressionLevel 9


&lt;IfModule filter_module&gt;


	AddOutputFilterByType DEFLATE text/html text/plain text/xml


&lt;/IfModule&gt;


DeflateFilterNote Input instream


DeflateFilterNote Output outstream


DeflateFilterNote Ratio ratio


LogFormat '&quot;%r&quot; %{outstream}n/%{instream}n (%{ratio}n%%)' deflate


&lt;Directory /&gt;


	SetOutputFilter DEFLATE


	BrowserMatch ^Mozilla/4 gzip-only-text/html


	BrowserMatch ^Mozilla/4&#092;.0[678] no-gzip


	BrowserMatch &#092;bMSIE &#33;no-gzip &#33;gzip-only-text/html


	&lt;IfModule setenvif_module&gt;


		SetEnvIfNoCase Request_URI &#092;.(?:gif|jpe?g|png)&#036; no-gzip dont-vary


		SetEnvIfNoCase Request_URI &#092;.(?:avi|flv|mov|mp3)&#036; no-gzip dont-vary


		SetEnvIfNoCase Request_URI &#092;.pdf&#036; no-gzip dont-vary


		SetEnvIfNoCase Request_URI &#092;.(?:exe|t?gz|zip|bz2|sit|rar|7z)&#036; no-gzip dont-vary


	&lt;/IfModule&gt;


&lt;/Directory&gt;

</IfModule>

<IfModule dir_module>

DirectoryIndex index.php index.pl index.html index.htm

</IfModule>

<IfModule log_config_module>

LogFormat &quot;%h %l %u %t &#092;&quot;%r&#092;&quot; %&gt;s %b &#092;&quot;%{Referer}i&#092;&quot; &#092;&quot;%{User-Agent}i&#092;&quot;&quot; combined


LogFormat &quot;%v %h %l %u %t &#092;&quot;%r&#092;&quot; %&gt;s %b&quot; common


&lt;IfModule setenvif_module&gt;


	# Don't log requests from loopback interface


	SetEnvIf Remote_Addr &quot;127&#092;.0&#092;.0&#092;.1&quot; DONTLOG


	CustomLog logs/access.log common env=&#33;DONTLOG


&lt;/IfModule&gt;


&lt;IfModule &#33;setenvif_module&gt;


	CustomLog logs/access.log common


&lt;/IfModule&gt;

</IfModule>

<IfModule mime_module>

TypesConfig conf/mime.types


AddType application/x-compress .Z


AddType application/x-gzip .gz .tgz

</IfModule>

<IfModule ssl_module>

SSLRandomSeed startup builtin


SSLRandomSeed connect builtin

</IfModule>

<IfModule vhost_alias_module>

Include conf/vhosts.conf

</IfModule>

Can you see any problems?

Are you using a vhost? If yes, also include the vhost configuration to the post.

Ohhh myyy goddd!

Dude thank you so much.

I was using the default zwamp install (http://zwamp.sourceforge.net/).

I wasn’t using a vhost, but there was one there already.

And I found the "AllowOverride None" and changed it to all.

Works. Is that safe though? I just want to override the rewrite stuff.

I’m not sure about that, but I think [font="'Courier New"]AllowOverride FileInfo[/font] should suffice

Works fine with just that. Thanks mate.

You’re welcome :)

For example I create a web app, should I built a ghost?