WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 404 problem, permalink? (4 posts)

  1. pmtate
    Member
    Posted 7 years ago #

    I keep getting 404 messages, I use a 404.php which gives me the link that people are looking for, they all seem to end in /index.php eg:

    http://www.pmtate.co.uk/home/contact/index.php
    http://www.pmtate.co.uk/2006/07/icaew-incoming-presidents-day/index.php
    http://www.pmtate.co.uk/2006/06/27/index.php

    is this something wrong with my permalinks? my .htaccess etc?
    If I try the link without /index.php invariably they work.

    tia

    Paul

  2. pmtate
    Member
    Posted 7 years ago #

    anyone any ideas please?

  3. AskApache
    Member
    Posted 7 years ago #

    RewriteCond %{REQUEST_URI} ^/(.+)/index\.php$
    RewriteRule ^(.+)/index\.php http://site.com/$1/ [R=301,L]

    You can also try adding this to the top of your .htaccess file
    DirectoryIndex index.php

  4. pmtate
    Member
    Posted 7 years ago #

    thanks that seems to have worked

Topic Closed

This topic has been closed to new replies.

About this Topic