Permalink Problem for Sub Directory Installed WordPress

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 :)

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>

WordPress Theme design by Ali Han