• Hi all,

    Getting those “pretty permalinks” to work is a struggle. I’ve put “https://www.sitename.com.au/wp/page-title” as the custom permalinks structure under Settings -> Permalinks and i get the link i want but when said link is actually clicked i get a “404 – File or directory not found.”

    I’ve read the WP doc on pretty permalinks and have followed what’s said about the “.htaccess” file however it doesn’t seem to help. I’ve created a .htaccess file in with my index.php containing the following:

    ‘# BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} ^wp-content.*
    RewriteCond %{REQUEST_FILENAME} ^wp-admin.*
    RewriteCond %{REQUEST_FILENAME} ^wp-include.*
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress’

    Still no luck. Can’t help but feel i’m missing something simple. Any help would be appreciated.

    Cheers,

Viewing 12 replies - 1 through 12 (of 12 total)
  • try this

    <IfModule mod_security.c>

    <Files async-upload.php>

    #SecFilterEngine Off
    #SecFilterScanPOST Off

    </Files>
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    </IfModule>

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

    Thread Starter wizbian01

    (@wizbian01)

    No luck ?? Any other ideas?

    do you have your own server or r you running on hosting provider company server?

    Hi,

    Set your desired permalink and add this code in htaccess of your blog:

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

    Thanks,

    Shane G.

    Thread Starter wizbian01

    (@wizbian01)

    Thanks Shane, but i still get the same 404 error.

    Kzq – I don’t have direct access to the server but i can get anything changed/installed if needed. That’s what i’m thinking the problem is at this point. Is there something on the server-side that needs rectifying do you think?

    Exactly what permalink structure are you using?

    Thread Starter wizbian01

    (@wizbian01)

    I put in https://sitename.com.au/wp/%postname%&#8217;

    ‘/http:/sitename.com.au/wp/%postname%’ is what WP alters it to. But yeah you get the idea.

    Try using just /%postname%/

    Thread Starter wizbian01

    (@wizbian01)

    Still gives me a server error…

    Thats why I asked you if you have your own server then you need to change some parts in your php.ini because I resolved this issue 6 days ago. Well best of luck Wizbian01.

    Do your web application come with mod_rewrite module?

    Thread Starter wizbian01

    (@wizbian01)

    Kzq – What do i need to change in the php.ini?

    Mick – I will find out if it does. ??

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