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

  1. Keverdy13
    Posted 5 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
    Posted 5 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]
    # END WordPress
  3. jschurman
    Posted 4 years ago #

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

  4. Mark Ratledge
    Forum Moderator
    Posted 4 years ago #

  5. jschurman
    Posted 4 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