Search code examples
wordpresspermalinks

500 internal server error when changing permalink to /%category%/%postname%/


I am getting Internal server error while changing the Permalink in wordpress. What I did was

I changed "Custom Structure" under Permalink settings and gave /%category%/%postname%/

It asked me to put a .htaccess with the following content:

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

Then my site become inaccessible i am getting Internal server error. I have my mod_rewrite enabled.

Any help is greatly appreciated. Thanks in advance.


Solution

  • Finally I figured out the problem it is because of the home entry in wp_options table.

    The home value is set as ./ I dont know how it got set. When I delete it the Permalinks works perfectly. No my home entry is Blank ""

    Hope it helps some one..