apache .htaccess permalink problem
-
I upgraded tonight to the “Duke” release – it is very fine ;-)) but I have problems with permalinks wich I didn’t have before.
I have Debian Sarge machine running apache2.
I want to customise the permalink stucture with the following:
/%year%/%monthnum%/%day%/%postname%/I create a .htaccess file that in the /wp root directory wich looks like:
————————-
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php/%year%/%monthnum%/%day%/%postname%/
</IfModule>
———————-
When I use the links I get apache2 404 error.I checked with info.php and mod_rewrite is doing fine, so
i checked apache.This is my site conf in apache:
——————————
DocumentRoot /home/rogopag/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory<
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# This directive allows us to have apache2’s default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory “/usr/lib/cgi-bin”>
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warnCustomLog /var/log/apache2/access.log combined
ServerSignature OnAlias /doc/ “/usr/share/doc/”
<Directory “/usr/share/doc/”>
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory></VirtualHost>
——————————–I tried to change the root and var directory settings to: AllowOverride All, but it gets me error 400 instead of 404.
Do someone have any clue about this problem?
Thanks. happy new year.
riccardo
The topic ‘apache .htaccess permalink problem’ is closed to new replies.