• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to remove index.php from all of my methods or cntrollers and redirect them to without index.php url

No, it will not affect SEO. Search engines can only follow links. If you don't make links with index.php in them, they won't get cataloged. If you make links that use both with and without index.php for the same link, then you will have a problem.

So it doesn't matter if you can access them both ways. Just only use one way to write the links, without the index.php.

Thanks a lot,

all links on my website are without index.php......


create file in your codeigniter folder name ".htaccess"

in that file add following code:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$1 [PT,L]

then save it. your problem will be solve.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.