Need help making this work


#1

I am trying to get mod_rewrite to be enabled on my website. Here is the current htaccess
[php]RewriteEngine on
RewriteCond %{REQUEST_URI} !^/cgi-bin/.*

RewriteBase /

Do not process images or CSS files further

RewriteRule .(css|jpe?g|gif|png|js)$ - [L]

Leave /admin and /install static

RewriteRule ^(admin|install).*$ - [L]

Rewrite web pages to one master page

RewriteRule ^([^/.]+)/?$ index.php?page=$1 [QSA,L]
RewriteRule ^([^/.]+)/([^/]+)/?$ index.php?page=$1&id=$2 [QSA,L]
RewriteRule ^([^/.]+)/([^/]+)/([^/]+)/? index.php?page=$1&id=$2&subpage=$3 [QSA,L][/php]

I do not know if I am doing it right. It doesn’t show up as a loaded module in php info. The application I am trying to install also does not acknowledge it.


#2

mod_rewrite is an Apache module, not a PHP module, so it wouldn’t show up in phpinfo().

The rewrite rules look fine to me, although the exception for images and CSS needs to have the period escaped so that it doesn’t capture paths that happen to end in those characters:

I don’t know why the application wouldn’t be recognizing this. What is it?