• Resolved eaglenick

    (@eaglenick)


    I am currently using “almost-pretty permalinks”: /index.php/%category%/%postname%/%post_id%
    It works fine and dandy.

    I want to switch to completely pretty permalinks by removing the /index.php part and have this be my working permalink: /%category%/%postname%/%post_id%

    Once I changed the setting in the control panel, I cannot access my posts via that URL. I.e., when I click the title of a post on the homepage, I get a 404 error, not found — it is attempting to take me to the new URL.

    I suspect this is because the URLs are not being rewritten. I am no expert with .htaccess, so I will post my current .htaccess file and allow you to assess and diagnose this issue, then provide me with a solution.

    <IfModule mod_security.c>
    SecFilterInheritance Off
    </IfModule>

    <IfModule mod_security.c>
    <Files upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    Any help is appreciated.

    Regards,
    Nick

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter eaglenick

    (@eaglenick)

    It seems that a lot of people come across this issue. I found this blog that solved my issue: https://perishablepress.com/press/2006/06/14/the-htaccess-rules-for-all-wordpress-permalinks/

    Scroll down that post and you will find two variations of a code to use. The first one is to use if your blog is in the root of the domain, and the second is to use if it’s in a sub-directory.

    I just replaced my entire .htaccess file with the code they provided, and voila! The permalinks without /index.php worked for me ?? [[Always backup your current .htaccess file before editing it, just in case something goes wrong]]

    I am currently using “almost-pretty permalinks”: /index.php/%category%/%postname%/%post_id%
    It works fine and dandy.

    I want to switch to completely pretty permalinks by removing the /index.php part

    I am having the exact same problem, except the solution has not worked for me. My blog is https://www.sixfiftyseven.co.uk and is hosted in the root directory of sixfiftyseven.uuuq.com.

    Can anybody give me some insight as to why this would not work for me? I have a writeable .htaccess file. I am not an expert and this problem is driving me crazy, I just can’t see what I have done wrong.

    Thanks,
    Rob

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Pretty” Permalinks’ is closed to new replies.