Forums

Permalink 404 Problem: 2.8 Style (33 posts)

  1. xpressabhi
    Member
    Posted 2 years ago #

    Guys can I change permalink frequntly. Actually I don't want to do it but some times setup goes bad or it get corrupted due to some plugin or theme , then I reinstall wordpress but in between permalink gets changed like
    /%year%/%postname%/
    to /%postname%-%post_id%/ or similarly any other. SO my question is by changing permalink we are changing only outlook or we are changing internally something. http://xpressabhi.com is my blog where I just installed wordpress 3.0 beta 1 and went into bad condition with swift theme but somehow I managed but when I enabled multiblog feature it changed permalink structure.
    Any comment for this.

  2. ColinMorgan
    Member
    Posted 2 years ago #

    Not sure if anyone has mentioned this yet but....

    In most cases the problem occurs because wordpress is in a sub directory and the htaccess is set incorrectly to reflect this. If your wordpress files are in a subdirectory.. ex. http://yoururl.com/wordpress then you need to change this line in your htaccess file within the sub directory folder:

    RewriteRule . /index.php [L]

    to

    RewriteRule . /wordpress/index.php [L]

    where wordpress is the name of your subdirectory folder.

    I hope this helps.

  3. doobya
    Member
    Posted 2 years ago #

    Thanks Matthias for the suggestion above! That was the key I was looking for to finally solve this annoying and mysterious issue with Apache and AllowOverride.

    Actually, I changed the code you suggested to read AllowOverride All, instead of None, and that did the trick.

    So to summarize my experience (with WP 2.9.2 and Ubuntu server 2.6.31):

    edit /etc/apache2/sites-available/default

    find the <Directory> section for your wordpress website and edit as follows:

    <Directory /var/www/>
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride All
                    Order allow,deny
                    allow from all
            </Directory>

    Then restart apache: sudo /etc/init.d/apache2 restart

    VoilĂ ! Thanks again and hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic