Forums

Remove /index.php/ from permalinks (2 posts)

  1. Keverdy13
    Member
    Posted 10 months ago #

    For all my permalinks, they have to be something like "http://www.prindull.com/index.php/%year%/%monthnum%/%postname%/". And if I use a custom structure and remove the "/index.php/" part in the beginning, I get a server 404 error.

    I want my post permalinks to be "http://www.prindull.com/%year%/%monthnum%/%postname%/". Also, I want my feed, category, and tag permalinks not to have /index.php/ in the beginning.

    I use cPanel.

  2. MarkRH
    Member
    Posted 10 months ago #

    Sounds to me like your .htaccess isn't correct. It should be something like:

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

Reply

You must log in to post.

About this Topic