01. June 2010 · 2 comments · Categories: Linux

Under the WP admin option menu, WordPress lists four choices for permalink structure:

  1. Default: http://pensacola-tech.com/pensacola/?=123
  2. Date and name based: http://pensacola-tech.com/pensacola/2010/05/10/sample-post/
  3. Numeric: http://pensacola-tech.com/pensacola/archives/123
  4. Custom: /%year%/%monthnum%/%day%/%postname%

Note: The “default” option is to not use permalinks.

There are 2 htaccess rules for all WordPress permalinks:

1. If WordPress is installed in the root directory:

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

2. If WordPress is installed in a subdirectory called "pensacola"


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

That's it... :)Enjoy!

2 Comments

  1. One can never know for sure what a abandoned area looks like

  2. @lexus is: What do you mean by that?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

css.php