Hi I Am Timbo Posted December 15, 2006 Share Posted December 15, 2006 I am trying to enable apache2 mod_rewrite for wordpress and am having some troubles. Here is what I have done (I added logging, but it doesn't work.I did a2enmod rewriteI added these lines to /etc/apache2/apache2.conf almost at the bottom, right before the sites-enabled wildcard:[code]RewriteEngine OnRewriteLog "/var/log/apache2/rewrite_log"RewriteLogLevel 9[/code]I then changed the permalink structure in wordpress to this:[code]/%year%/%monthnum%/%day%/%postname%/[/code]I took the code they gave me and put it in a .htaccess file in the same directory as wordpress' index.php[code]<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule>[/code]Then reloaded the web server:[code]/etc/init.d/apache2 force-reload[/code]everything reloaded fine.I go to the blog, and the first pages loads fine (because of the directory index). Then I click a link and get a File Not Found error. Here is the log.[code][Thu Dec 14 23:11:46 2006] [error] [client 24.116.186.97] File does not exist: /var/www/timbo.name/hi.i.am/2006, referer: http://hi.i.am.timbo.name/[/code]Looks like it isn't rewriting! Can anyone think what I am doing wrong? Link to comment https://forums.phpfreaks.com/topic/30722-mod_rewrite-for-apache-2-on-debian-sarge-wordpress/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.