maniek35187
maniek35187

Add following lines to .htaccess file

RewriteCond %{THE_REQUEST} ^./index.php RewriteRule ^index.php(.)$ /$1 [R=301,L]

This will redirect host/index.php to host

team53994
team53994

How do I do this for Nginx

I'm having an issue with Google indexing both urls. Example

https://blog.cornwallcottages.com/index.php/category/food-drink https://blog.cornwallcottages.com/category/food-drink

I'm running on Forge

Thank you

maniek35187
maniek35187

You can edit htacces whetewer you have nginx or not.

1-3 of 3