URL Rewrite Setup - is .htaccess mandatory?

Druppie

Joined: 2006-12-01
Posts: 2
Posted: Fri, 2006-12-01 21:11

I'm trying to configure the mod_rewrite settings for url_rewrite module in Gallery2 and having trouble. It is giving me a 'warning' and asking me to 'Test mod_rewrite manually.'

The trouble is, I don't have .htaccess files enabled by default as per the performance suggestions of the Apache Software people. I'm running my own machine. I have drupal setup in the multisite drupal configuration (common code base) and I do the mod_rewrite stuff for drupal in my extra/httpd-vhosts.conf file, not in .htaccess. Likewise with the non-drupal sites.

What I would like to know is, can I get past this stumbling block in the setup if I am not using .htaccess files? Can I simply get the .htaccess info from somehwere so I can put it in my apache config file?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-12-01 23:21

i suggest you enable .htaccess, let g2 write its mod_rewrite rules to .htaccess and then activate the URL rewrite module.
and once that's done you can copy the rewrite rules to your http.conf file and disable .htaccess support again.

 
Druppie

Joined: 2006-12-01
Posts: 2
Posted: Sat, 2006-12-02 16:28

OK, so .htaccess is only required to write to once and then doesn't require writing further. Excellent.

A note to the gallery team, you may want to consider static .htaccess file if possible so we can just use an Apache include directive to stick that into our http-vhosts.conf file. Would make install and more importantly upgrade quite simple.

Thanks for the response valiant.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-12-02 16:29

you can file a feature request, see:
http://gallery.menalto.com/sfvote_help