Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other 404 Page not found after changing "permalink" in WordPress

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #154493
    Allen Justin Quinto
    Participant

    Hello,

    Here are my problem about WordPress.
    I changed my WordPress permalink from default to /%postname%/. However, none of my posts appear to be ok. They are all “page not found”. But when I change back to default permalink, its all OK again.

    I’m running my WordPress in localhost (WAMP) server.

    Thanks.

    #154495
    Alen
    Participant

    It’s a permission issue. WordPress can not write the .htaccess file to accommodate the URL rewrite. Make sure that WAMP has write permissions in the root of your WP install.

    #154497
    Allen Justin Quinto
    Participant

    Hey Allen,

    Thanks for that. But still in won’t work.

    This is the content of my .htacccess before changing the permalink.

    BEGIN WordPress
    
    END WordPress
    

    And when I change the permalink into /%postname%/, the file is automatically modified and here is the content of the new .htaccess file.

    BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /wp_projects/sample_wordpress/
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp_projects/sample_wordpress/index.php [L]
    
    END WordPress
    
    #154503
    Alen
    Participant

    In the second example, put this: Options +FollowSymlinks right above the RewriteEngine On.

    And try it out.

    #154514
    Allen Justin Quinto
    Participant

    I just tried it but still won’t work.

    BEGIN WordPress
    
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /wp_projects/sample_wordpress/
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp_projects/sample_wordpress/index.php [L]
    
    END WordPress
    
    #154515
    Senff
    Participant

    Does your Apache server have the rewrite_module on?

    #154520
    Allen Justin Quinto
    Participant

    Thanks Senff, It works finally!
    Thanks also for Alen.

    This link helps me to enable the rewrite_module on my apache:
    How to enable rewrite_module on apache.

    #154656
    Alen
    Participant

    Ah should have remembered that one.

    If anyone is on Linux and experiencing same issue run this:

    sudo a2enmod rewrite

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Other’ is closed to new topics and replies.