7. Oktober 2009

Error 404 when enabling fancy permalinks in WordPress

Category: Howto / Tutorial — Tags: , , , – Kay Smarczewski @ 15:25

I tried to enable the fancy permalinks in WordPress. But all I got was an error 404: Page not found.

That is because for these fancy links WordPress maps the title and date of the article in the address to the original address example.com/?p=xyz by using the Apache module mod_rewrite. In Debian Lenny this is disabled by default. To activate it you just do a
# a2enmod rewrite
Additionally, AllowOverride has to be set to all instead of none. Modify the concerning file, e.g. /etc/apache2/sites-available/default:

<Directory /var/www/blog/>
...
AllowOverride all
...
</Directory>

Keine Kommentare »

Noch keine Kommentare

RSS Feed für Kommentare zu diesem Artikel. | TrackBack URI

Hinterlasse einen Kommentar

XHTML ( You can use these tags):
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

Kay Smarczewski


mein Blog

Seiten

Kalender mit Posts

Oktober 2009
M D M D F S S
« Sep   Dez »
 1234
567891011
12131415161718
19202122232425
262728293031  

Schlagwörter

Dieses Blog durchsuchen

© Kay Smarczewski – Powered by WordPress