• Resolved hb2011

    (@hb2011)


    Hi,

    I’ve tried to change the permalinks for my site to:
    /%post_id%/%postname%/

    I followed the steps in: https://codex.www.ads-software.com/Using_Permalinks
    Although the instruction says…

    When you create or update a “pretty” permalink structure, WordPress will generate rewrite rules and attempt to insert them into the proper .htaccess file. If it can’t, it will say something like You should update your .htaccess now and print out the rules for you to copy and paste into the file (put them at the end).

    …there is no file created. I searched in my installation folder (which is the wwwroot folder) and it’s not there. I use filezilla and also with force hidden files to be shown it is not there.

    So, I changed back to the default. Then followed the instructions to create a file with the code:

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

    I uploaded the file, checked and it is in the root. Then I changed permalinks again to the desired /%post_id%/%postname%/, saved and: still 404 error.

    Also I verified with my host and .htacces is enabled and it should work. What am I missing here?

Viewing 1 replies (of 1 total)
  • Thread Starter hb2011

    (@hb2011)

    SOLVED:

    It appeared that the site is running on IIS 7. Then it became a matter of googling and following instructions.

Viewing 1 replies (of 1 total)
  • The topic ‘Permalinks: following steps, creating .htaccess, result 404’ is closed to new replies.