• Resolved logicsound

    (@logicsound)


    ok after 24 hours I have finally got my custom theme working, But now when I add custom permalinks or try to use any other permalink besides default I get 404 pages on everypost and category?

    SPECS
    I am using a vps at hosting.com linux with apache and the newest version of wordpress. WordPress is installed in a subdirectory called blog.

    STEPS I HAVE TAKEN
    I did not have a htaccess file so I created one in blog directory and then wordpress was able to write to (“Permalink structure updated.”)but still showing 404 pages for all posts.

    I have searched all forums and tried all the custom htaccess files but no go.

    I have tried the default theme and same issue.

    Here is my address.

    https://www.lockersnmore.com/blog

    Thanks for any help!!!!

    T

Viewing 5 replies - 1 through 5 (of 5 total)
  • Samuel B

    (@samboll)

    can you post the permalink structure and the contents of the .htaccess

    Thread Starter logicsound

    (@logicsound)

    /%category%/%postname%

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

    # END WordPress

    THANKS!

    Samuel B

    (@samboll)

    well that looks ok
    and you know mod_rewrite is turned on?

    might try adding
    Options +FollowSymLinks
    to the top of .htaccess

    Thread Starter logicsound

    (@logicsound)

    Tried adding that, no luck

    do I need to contact my hosting company to see if mod_rewrite is turned on? I am on a vps server and my permalinks in my other website/blog work fine.

    I just tried this
    https://www.tutorio.com/tutorial/enable-mod-rewrite-on-apache

    and it worked, I made a subfolder called modtest.

    Thanks for the help!

    Thread Starter logicsound

    (@logicsound)

    Ok just got it fixed, The web guy before me did all his programming custom and not through the cpanel so I called my host company and this is what they had to add to httpd.conf file

    <Directory “DIRECTORY”>
    Options +FollowSymLinks
    AllowOverride AuthConfig FileInfo
    </Directory>
    to you httpd.conf file and distilled it. This allows your .htaccess file
    to override the redirect rules.

    Thanks for pointing me in the right direction, no I just need to get comments working but thats another post.

    T

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Permalinks and 404 page’ is closed to new replies.