Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

wordpress, permalinks and .htaccess problem.

I have usually installed wordpress by downloading form wordpress site. This time I felt that I owe some respect to people packaging wordpress for fedora. I installed all that I needed: httpd, mariadb, php and worpress using yum. Worked the secure installation for dataabase and created the new ones. At last mastered the systemctl coommand. I even follow instructions to correct some selinux warnings instead of disabling selinux. So far so good.

The problem was when I tried to enable permalinks. I got a message form wordpress that my .htaccess file does not have write permisison. I got some rules that I have to add to .htaccess file to enable mod-rewrite. I used the phpinfo to verify that I have the mod-rewrite in httpd. I made a a search for .htaccess as su (root) form the root (/) I did: find -name ".htaccess". There was none in the system.

I created a file .htaccess with the content provided by wordpress. I tried to place it at /var/www/htlm/ then triend to place it at /usr/share/wordpress/ next to index.php of wordpress. This is all I have in .htacces file:

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

My questions: Where do I have to place the .htacces file? Do I have to add something else to the .htaccess file?

Any help will be appreciated.