January 16, 2011 at 1:51 am
· Filed under .htaccess, Apache, PHP
You can remove PHPSESSID from URL by changing session.use_trans_sid value in php.ini, .htaccess (Apache) or in PHP code.
In php.ini set the value of session.use_trans_sid to 0
session.use_trans_sid = 0
In .htaccess
php_value session.use_trans_sid 0
In PHP code set the use_trans_sid value to false like below
ini_set('session.use_trans_sid', false);
Permalink
June 16, 2007 at 6:49 pm
· Filed under .htaccess, Apache, PHP
It is strongly recommended that you do not turn on the register_globals. But if you still want to turn on register_globals then follow these steps
Make a .php file containing only this code
< ?php phpinfo(); ?>
And upload this file to your new server and open in the browser. In the page output find the value for 'register_globals'. If it is off, then you can solve this problem in the following ways
Read the rest of this entry »
Permalink
May 28, 2007 at 4:58 pm
· Filed under Apache
mod_rewrite provides an effective way to make short/friendly URLs and it also makes your site more attractive for search engine crawlers.
You can enable mod_rewrite for Apache 1.3 with the below steps easily.
First step
Remove '#' in front of
LoadModule rewrite_module modules/mod_rewrite.so
Make sure 'mod_rewrite.so' is available under 'apache installation directory/modules'.
Second step
Remove '#' in front of
AddModule mod_rewrite.c
Read the rest of this entry »
Permalink