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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.