index.php inserted into URL using htacess redirect
I have noticed some strange stuff regarding one of our websites. In ahrefs.tld, the "Broken Backlinks" shows some strange things.
Now, according to the report, this is 301 redirected to it's https version (as it should). HOWEVER, /index.php/ is inserted into the URL: So, the 301 redirect rules does work for redirecting . But why the /index.php/ is replacing the /maincategory/? The 301 redirect rules from the top of the .htaccess file should redirect anything that is:
It's a bit of an issue because it affects the user experience, link juice is lost and, overall, annoys me like nothing else. :) I know I am missing something, but I have no clue what. On the live website I wasn't able to find any faulty redirect, but again, I have the SSL certificate installed for *example.tld. So, I am guessing that it has something to do with redirecting
- PHP/5.6.40
- Server Version: Apache/2.4.39 (cPanel) OpenSSL/1.0.2s mod_bwlimited/1.4
- PHP-FPM not enabled
- Cloudflare has no implication in this. Tested it with and without it.
more helpful hintsNow, according to the report, this is 301 redirected to it's https version (as it should). HOWEVER, /index.php/ is inserted into the URL: So, the 301 redirect rules does work for redirecting . But why the /index.php/ is replacing the /maincategory/? The 301 redirect rules from the top of the .htaccess file should redirect anything that is:
- (this is the most important to keep, actually... the website always had the www, so there are only a couple of backlinks pointing to the non www. version)
It's a bit of an issue because it affects the user experience, link juice is lost and, overall, annoys me like nothing else. :) I know I am missing something, but I have no clue what. On the live website I wasn't able to find any faulty redirect, but again, I have the SSL certificate installed for *example.tld. So, I am guessing that it has something to do with redirecting
Please sign in to leave a comment.
Comments
0 comments