Hello DP, Hope you all are doing well. I'm facing htaccess redirection issue with one of my website http://www.jets-corp.com . A new pages automatically generated when you type anything after .php (it is applicable for internal pages only). For example, if we take the URL http://www.jets-corp.com/emptylegs.php and type anything after .php (for example /jhgduhygh.php), another page does appear: http://www.jets-corp.com/emptylegs.php/jhgduhygh.php I want to fix it through .htaccess redirection(actually I want to redirect all such pages to the home page or better at their root page) or suggest me if there is other way to fix the same. I would appreciate your suggestion to fix the issue. Thanks and Regards,
That sounds odd. Perhaps something like this can help: RewriteEngine On RewriteBase / RewriteRule ^([^/]+).php/([^/]+)$ /$1.php? [L,R=301] Code (markup): Cheers!