Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose a website having page rank 3 and it contains index.php in all its urls like below and their page rank www.xyz.com/index.php/about-us Page rank 2 www.xyz.com/index.php/services Page rank 2 . . and so on. So if we remove "index.php" now, will it affect in SEO page rank and search results?

Thanks in advance.

share|improve this question

migrated from expressionengine.stackexchange.com Oct 30 '13 at 17:47

This question came from our site for administrators, end users, developers and designers for ExpressionEngine® CMS.

Not if you use a 301 redirect to redirect the /index.php/ URL's to the URL's w/o the index.php. You can do this using .htaccess, for example:

RewriteEngine On

RewriteCond %{SERVER_NAME} !^www.example.com$
RewriteRule .* http://www.example.com%{REQUEST_URI} [R=301,L]

RewriteCond $1 !^(index\.php|robots\.txt|sitemap\.xml)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]

ErrorDocument 404 /index.php
DirectoryIndex index.php

Copied from here: http://stackoverflow.com/a/18777310/247515

share|improve this answer
Thanks for the reply but if you redirect all urls of the website using 301,I think it is not good for SEO.Because redirecting each every url with 301 is not good in the eyes of search engine. – Kalu Charan Oct 22 '13 at 6:12
@KaluCharan Not sure if the number of redirects matter - but anyway if you want to remove index.php this is the best way to do it. – Bjørn Børresen Oct 30 '13 at 13:06
According to Google, a 301 will attenuate PageRank inflow by ~15%, which is about the same as a normal link. Consequently where a link and a 301 are in series, total PageRank loss is compounded. So in addition to the redirects Bjørn correctly suggests, you'd update your internal links to the new (sans index.php) format and ideally try to get key external links updated too, though some loss from external links is likely unavoidable. I'm not aware of any basis for idea that redirecting every URL is "not good in the eyes of search engine": doing so is standard practice when migrating sites. – GDav Oct 31 '13 at 10:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.