• Resolved blue_life

    (@blue_life)


    Hi
    I am trying to change my url into pretty permalinks.
    So far , if I use the basic config of wordpress like
    https://www.mysite.com/myblog/index.php/2010/08/14/sample-post/
    it works.
    NOTE : no .htaccees file was needed at this point.

    But this is not exactly what I want. I do not want the index.php appearing in the URL.
    So when I try to put in the custom field : /%postname%/ it does not work. As a consequence I followed the wordpress help on this matter, as well as many other articles on the subject and uploaded in my blog directory the following .htaccess file rule:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    But I get an 404 error page.

    For info, my blog is is a subdirectory…if this help.
    Could it be that my .htaccess file rule is wrong ?

    THANK YOU !!!!!

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘I cannot get rid of index.php in permalinks & .htaccess’ is closed to new replies.