.htaccess and permalink: Internal server error after checking everything
-
After spending over 20+ hours trying to fix the problem I give up and would really appreciate any help.
What exactly is my problem?
After installing my wordpress (not into root, but https://www.mypage.cz/blog), I wanted to optimize the blog with permalinks. So I went to the permanent links page and chose /%category%/%postname%/ (tried it with many many combinations of other things too) and what it does is generate a 500 Internal server error: The server encountered an internal error or misconfiguration and was unable to complete your request.So I looked through all the info, checking that I have mod_rewrite running on server.
Server info: MySQL – 5.0.27, PHP Version 5.1.6, Linux, Apache 2.0,
AskApache RewriteRules Viewer:
> Permalink: /%category%/%postname%/
> Writable .htaccess file found
> mod_rewrite found
> Not using pathinfo style index permalinks
> Using mod_rewrite permalinks
..so that should be all allright.The weird thing is that the .htaccess file was not generated by the installation and has always been created by trying to change the permalink, which in turn showed the error. Actually, I had to delete or rename the /blog/index.php and only after that was the .htaccess file created. Then after I deleted the .htaccess file and rename index.php back the blog is working fine again, but if I click on post caption it redirects me to a correct name (given by permalink), but sais The web page cannot be found. ???
Oh mod_frontpage is not runnning if that is of relevance (on the server).
Apparently the error always shows when there is .htaccess file present in the https://www.somepage.cz/blog/ directory (i.e. https://www.somepage.cz/blog/.htaccess)
Content of the .htaccess file I use:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
, but as I say, whenever I tried to put some content (not empty) .htaccess file to the /blog/ root, it displays the error.– Tried getting rid of the <IfModule .. and </IfModule, just running it – no help.
– Tried changing “includes/vars.php” ( $is_apache = 1; ) – no helpThanks for your help, hope I gave you all the info needed, if there is anything else relevant, please say so and I’ll post it asap.
- The topic ‘.htaccess and permalink: Internal server error after checking everything’ is closed to new replies.