WordPress.org

Ready to get started?Download WordPress

Forums

Permalink & htacess question (4 posts)

  1. cuttsgroup
    Member
    Posted 6 years ago #

    I want to, and tried to change the permalink to this structure: /&category%/%postname%/ but when I tried that, I got a 404 error, so I changed back to the default.

    Questions:

    1. Where should the .htacess file be??

    2. What should be entered into the .htacess file for the permalink structure I want to work correctly??

    Thanks, Allyn

  2. 4k
    Member
    Posted 6 years ago #

    the .htaccess file should be at the root of your wordpress install ie where your wp-admin wp-content etc files are.

    To change your perma link structure try adding this to your .htaccess file and set permissions to 666

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

    now update permalinks

    DO NOT FORGET to go back and set .htaccess permissions to 644 otherwise it is a HUGE security issue

  3. cuttsgroup
    Member
    Posted 6 years ago #

    permalink seems to work with this: /%postname%/

    but not this: /&category%/%postname%/

    http://www.americanmedsupply.com/blog/

    Any ideas???

  4. cuttsgroup
    Member
    Posted 6 years ago #

    oops, sorry. i found the problem. Thanks, Allyn

Topic Closed

This topic has been closed to new replies.

About this Topic