4 years ago

Removing /index.php completely

Posted 4 years ago by Lebod

So we have a Forge server set up with "Pretty URLs" set up in Nginx:

location / {
    try_files $uri $uri/ /index.php?$query_string;

The thing is, is that a person can still type in URL/index.php and visit the site. Additionally, we get visitors from Google into URL/index.php which means that Google is also indexing an index.php version of the site which could hurt SEO. Do you guys have a way to tackle this problem?

Thank you

Please sign in or create an account to participate in this conversation.