Can we get a mod_rewrite patch for Suse 10.

I could use mod_rewrite and apparently it’s not been built into your cutomized version of apache2, or atleast a program Im running, gallery 2 is telling me it isnt.

When I try to test mod_rewrite with the program I get back: Server error 500 in my access logs it states: "GET /gallery/modules/rewrite/data/mod_rewrite_no_options/gallery/Rewrite.txt HTTP/1.1" 500 1058"

When I try test mod_rewrite with options directive, I also get a server 500 error and my access log says: "HEAD / HTTP/1.0" 200 -"

So it seems I dont have mod-rewrite in either format.

The only loaded modules are:
"ore prefork http_core mod_so mod_access mod_actions mod_alias mod_auth mod_auth_dbm mod_autoindex mod_cgi mod_dir mod_env mod_expires mod_include mod_log_config mod_mime mod_negotiation mod_setenvif mod_ssl mod_suexec mod_userdir sapi_apache2"

Also by the way, I was looking at what installed scripts I had, and it said I had the civic whatever script installed, I decided to uninstall it from the civic directory, and it wiped out my site and left nothing in the public_html directory. THANKS!

By the way, there is nothing in my error log.


You do not need to patch SuSE 10.0 you just need to add the rewrite module to the APACHE_MODULES statement in /etc/sysconfig/apache2 file.

I think you also need to turn mod_rewrite on and then define the rules in the vhost directive, maybe this can be done in .htaccess as well but i’m not sure about that.

something like…

RewriteEngine On
RewriteRule ^/browse/([[a-zA-Z]]+)(.*) /browse.cfm?s=$1 [[PT,L]]


Your are right. I set this up when I was getting the Durpal htaccess file to work. Looking at it very close I found the following:

Various rewrite rules.

<@IfModule mod_rewrite.c>
@ RewriteEngine on

Modify the RewriteBase if you are using Drupal in a subdirectory and

the rewrite rules are not working properly.

#RewriteBase /drupal

Rewrite old-style URLs of the form ‘node.php?id=x’.

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([[^&]]+)$
#RewriteRule node.php index.php?q=node/view/%1 [[L]]

Rewrite old-style URLs of the form ‘module.php?mod=x’.

#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([[^&]]+)$
#RewriteRule module.php index.php?q=%1 [[L]]

Rewrite current-style URLs of the form ‘index.php?q=x’.

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?q=$1 [[L,QSA]]


The @ was added to keep this system happy. :slight_smile:

You can see in the third line that the rewrite engine is turned on.

I think that directive allow was changed in a recent update to virtualmin to set it in the vhost.conf files. If it was not then it will have to be set to.

Kevn R.