500 internal server error when changing permalink to /tegory%/%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%/

Read More

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.

Related posts

Leave a Reply

2 comments

  1. You trying to rewrite the url two times:

    1. .htaccess file
    2. WP Permalink settings

    Get rid of your .htaccess file
    (or comment first line)

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

    hope this will help.

  2. 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..