WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] htaccess file points every link to index.php

[Resolved] htaccess file points every link to index.php

  • Hello,

    I’m trying to implement permalinks on my site (click on name link, left).

    WP is able to generate an htaccess file for me, but every permalink then just points to index.php.

    The structure I want is: /%year%/%monthnum%/%day%/%postname%/

    The link appears correctly in this format in the address bar when I click on a post title. Instead of loading the post, though, the index page just reloads.

    The htaccess file looks like this:

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

    # END WordPress

    It looks a bit fishy, but I don’t know nearly enough about it to set about writing it myself.

    This same file is generated whatever structure I specify in the admin panel – so I assume there’s some problem with generating the htaccess file code.

    I have tried removing the write access to the htaccess file using CHMOD, to see if WP generates different code for me to paste in – but it doesn’t.

    Any ideas would be gratefully received!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] htaccess file points every link to index.php’ is closed to new replies.
Skip to toolbar