[eluser]Unknown[/eluser]
Hi geeks,
I have applied .htacess to get rid of index.php, now, it works on my home page as well as in the deeper pages on my localhost, but when I transfer them to my server, .htacess on links do not work.
My codes for links are the following:
This codes do not work on my server
Code:
<a href="<?php echo base_url();?>home/privacy/">Privacy</a>
While this works:
Code:
<a href="<?php echo base_url();?>index.php/home/privacy/">Privacy</a>
My .htacess codes are the following:
Code:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteEngine on
RewriteCond $1 !^(trans\.php|index\.php|home|images|forum|js|cgi-bin|cgi-bin/mail\.cgi|css|links|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Please help me, thanks.