WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Keverdy13
    Member
    Posted 3 years 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 3 years 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
  3. jschurman
    Member
    Posted 2 years ago #

    Do you know the configuration required for IIS as it uses a web.config file not a .htaccess file.

  4. jschurman
    Member
    Posted 2 years ago #

    Thanks @songdogtech. I actually found the solution which is exactly what you showed. I installed the URL Rewrite Module via WPI and then added the code referenced in the web.config file.

Topic Closed

This topic has been closed to new replies.

About this Topic