Permalink Problem for Sub Directory Installed WordPress

22 Mar

Example Permalink:

Category URL: http://alihan.com.tr/blog/category/miscellaneous
Post URL: http://alihan.com.tr/blog/miscellaneous/permalink-problem-for-sub-directory-installed-wordpress/

STEP 1

  • Go to your wordpress admin panel
  • Settings > Permalinks
  • Edit “Custom Structure” field: /%category%/%postname%/

STEP2

Edit .htaccess file:

  • Open your favorite text editor. (Notepad, Wordpad etc.)
  • Paste this code in the text editor:
</pre>
<blockquote><IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
<pre>
  • Change “blog” terms your WordPress installed directory.
  • Save to file this name: htaccess.txt
  • Open your ftp access application and go to server root directory
  • Upload htaccess.txt this directory
  • Rename htaccess.txt to .htaccess
  • Finish! Enjoy :)

One Response to “Permalink Problem for Sub Directory Installed WordPress”

  1. Comment by alex March 27, 2009 at 15:53 #

    great article. thank

Leave a Reply