mod_rewrite without .htaccess

tabdelgawad

Joined: 2002-08-19
Posts: 2
Posted: Mon, 2002-08-19 19:37

Hello:

I'm running Apache 2.0.40 and PHP 4.2.2 on Win2k. Since I'm serving everything from my home PC, I decided to 'AllowOverride None' and control everything from httpd.conf (easier to manage and less resource intensive than .htaccess).

I would like to use the mod_rewrite feature in Gallery. I enabled it in httpd.conf, and copied the contents of the .htaccess file in the setup directory to a <Directory> directive in httpd.conf. Problem is, the configuration script will only allow mod_rewrite functionality if it perceives that .htaccess files work.

Question is: can I have mod_rewrite functionality without .htaccess files? Should I perhaps run the configuration script with .htaccess enabled, then just 'AllowOverride None' later?

TIA,

Tamer

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Tue, 2002-08-20 00:26

I haven't tested this myself, but you might get away with
remove the .htaccess file after dumping the contents into your
<Direcotory> section for the gallery. I think all you need to turn
it on or off is the rewrite parameter in config.php