WordPress.org

Ready to get started?Download WordPress

Forums

Changing Permalink from ID to NAME (3 posts)

  1. Linards
    Member
    Posted 1 year ago #

    Hi,

    Im newbie to WP.

    Im trying to set the Permalink from ?page_id=8 in this case to blog URL. But when I change the settings to Post Name, the page is not displayed (Not Found) on this server. When I change back to DEFAULT in settings, its all fine. Im working on localhost.

    Thanks

    Linards

  2. DoubleDigits
    Member
    Posted 1 year ago #

    Make sure your .htaccess is writable. That often happens when you change to postname style permalink structure. When you change it, it should show you the code if it is not writable.

    Take that code and put it into your .htaccess

  3. Linards
    Member
    Posted 1 year ago #

    Thanks,

    I did put the code

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /linards-berzins.com/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /linards-berzins.com/index.php [L]
    </IfModule>

    in the.htaccess file, still nothing.

    And as well, it was without the code snippet, had to get it from Codex.

Topic Closed

This topic has been closed to new replies.

About this Topic