Archive for the .HTACCESS Category

Default .htaccess code for WordPress

The default .htaccess code for WordPress is as follows :
# BEGIN wordpress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_fileNAME} !-f
RewriteCond %{REQUEST_fileNAME} !-d
RewriteRule . /index.php [L]
# END wordpress


Options FollowSymLinks or SymLinksIfOwnerMatch forbidden error …

When you get this error while browsing your site :

[Fri Jan  8 01:55:09 GMT 2010] [error] [client] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule
directive is forbidden: /home/username/public_html/foldername/403.shtml

Just  add the following code in the .htaccess file  :

[email protected][~]#  vi .htaccess

RewriteEngine On
Options +FollowSymLinks +SymLinksIfOwnerMatch
That's all this will do it. 

PHP values you can change from .htaccess

Here is the list of PHP  values that you can change from “.htaccess”

php_flag session.use_trans_sid On
php_flag session.use_only_cookies on
php_flag register_globals On
php_value magic_quotes_runtime On
php_flag magic_quotes_gpc off
php_admin_flag safe_mode Off

php_value post_max_size 2048
php_value upload_max_filesize 15M
php_value max_execution_time 300
php_value magic_quotes_gpc off
php_flag session.bug_compat_warn off
php_value session.use_cookies 1
php_flag session.use_only_cookies 1?