
Originally Posted by
php_daemon
Usually WP updates the file when you turn on permalinks. If for some reason it can't update the file automatically, it gives you the code to add to .htaccess manually.
The code is:
Code:
# 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]
</IfModule>
# END WordPress
Hi,
Thank you for your advice. It seems that my .htaccess file is correct. But it still gives me a 404 error with the following .htaccess codes:
Code:
# 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]
</IfModule>
# END WordPress
RewriteEngine off
<IfModule mod_suphp.c>
suPHP_ConfigPath /home/myexcel3/public_html/php.ini
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>
This is so strange..
Bookmarks