Hello,
I am using Apache 2.0.43 (Win32) + PHP 4.3.0 with virtual hosts. Works fine.
As a newbie to mod_rewrite, I found tons of examples on how to write the
patterns + conditions but not that much on actually *enabling* mod_rewrite.
I have uncommented (i. e. made active) the LoadModule line in httpd.conf,
and I have extended my VirtualHost entry to read like this:
<VirtualHost _default_:920>
ServerAdmin webmaster RemoveThis @no_spam.smartXXL.com
DocumentRoot "D:/www/smartxxl.com/pub"
ErrorLog logs/smartxxl-com-error.log
TransferLog logs/smartxxl-com-access.log
RewriteEngine on
RewriteLogLevel 1
RewriteRule ^artikel_([0-9]+)_([0-9]+)\.html$ artikel.php?id=$1&rubrik=$2
</VirtualHost>
I have also redundantly generated an .htaccess with the "RewriteEngine on
...." stuff in it,
and I have a simple artikel.php file, waiting for requests for
artikel_0_0.html,
but Apache only returns a file not found error.
What do I have to do to actually enable mod_rewrite?
I do have a file C:\Program Files\Apache
Group\Apache2\modules\mod_rewrite.so in my installation. I have not compiled
Apache myself.
best regards
Klaus
XXL at smartXXL.com
>> Stay informed about: Apache 2 + mod_rewrite: rewrite not enabled?