Configure Custom Wordpress Permalink

The following guidelines will help us debug a custom wordpress permalink. Normally we want the URL to be customized, has sense for SEO purposes but wordpress by default use the jurassic id system (page_id=xxx). Fortunately wordpress already offer this feature, but is always tricky to setup specially on different configuration. So what to check (applicable on both Windows and Ubuntu)? 1.) Make sure that rewrite module is enabled, in apache's http.conf make sure that the below line is uncommented. LoadModule rewrite_module modules/ 2.) In the apache's http.conf directory setting change AllowOverride value from None to All, there are 2 instances make sure you change the 2nd instance. AllowOverride All 3.) Normally wordpress will create a .htaccess in your wordpress installation's root folder when you choose custom permalink. In case you already have one and it's read-ony, here's how it look like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
4.) Make sure that you don't have this setting in your apache's http.conf AccessFileName htaccess.txt 5.) If everything fails, you can always set custom permalink to this one :-) /index.php/%postname%/
Configure Custom Wordpress Permalink Configure Custom Wordpress Permalink Reviewed by Edward Legaspi on Saturday, July 20, 2013 Rating: 5

No comments:

Powered by Blogger.