mod rewrite permalink sructure/ htacess/ (9 posts)

  1. pstar
    Posted 9 years ago #

    Can anyone tell me what my htaccess file should look like? I am using domain.com/%post-name%/

  2. When you update your permalinks, it will either:
    a) Write the .htaccess out for you, or
    b) Tell you what is supposed to be in it (scroll down on the page).

    We can't tell you what your .htaccess will be. It'll be similar to what we use, but probably not identical.

  3. pstar
    Posted 9 years ago #

    i actually did copy /paste into file. maybe i uploaded in wrong directory. where does the htaccess file go?

  4. Samuel B

    Posted 9 years ago #

    .htaccess goes in the WordPress root - where all of the WP files are.

  5. pstar
    Posted 9 years ago #

    yeah, nothing is solving my problem.

    i am using domain.com/blog/%post-name%/

    htacess looks like this:

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

  6. Adam Brown
    Posted 9 years ago #

    Are you sure your host even allows you to use htaccess? Write a bunch of garbage in your htaccess and upload it. If you don't get an error, your host isn't even looking at your htaccess file.

  7. pstar
    Posted 9 years ago #

    i have a dedicated server.

  8. Chris_K
    Posted 9 years ago #

    That wasn't really answering the question... Is it properly configured for both mod_rewrite and AllowOverride?

    Checked any of the trouble-shooting stuff out at the Permalinks page?

  9. pstar
    Posted 9 years ago #

    i figured it out. Well sort of. I entered a Category Base and my blog/%post-name%/ now works but the Category Base isn't showing but I do not care.

    Thanks all.

Topic Closed

This topic has been closed to new replies.

About this Topic