rox94
Registered Member
- Nov 6, 2024
- 70
- 34
Hi everyone,
I’m running a website built with Laravel in production, but I’m facing an issue with duplicate URLs. For example, my main URL is:
shoes.com/black
But the server also generates an additional URL with /public includeed:
shoes.com/public/black
The problem is that Google has indexed both versions (shoes.com/black and shoes.com/public/black), which is causing duplicate content issues. I understand that the root cause is likely related to server configuration, where /public shouldn’t be exposed. However, the site is still live, and I can’t make big changes to the server configuration just yet.
In the meantime, I’m considering using Google Search Console to manually deindex the /public URLs one by one. Would this be a reasonable temporary solution until I can properly configure the server and fix the issue?
If anyone has dealt with a similar situation, I’d appreciate your advice! Also, if you have recommendations on how to set up Laravel in production to avoid exposing /public, feel free to share.
Thanks in advance!
I’m running a website built with Laravel in production, but I’m facing an issue with duplicate URLs. For example, my main URL is:
shoes.com/black
But the server also generates an additional URL with /public includeed:
shoes.com/public/black
The problem is that Google has indexed both versions (shoes.com/black and shoes.com/public/black), which is causing duplicate content issues. I understand that the root cause is likely related to server configuration, where /public shouldn’t be exposed. However, the site is still live, and I can’t make big changes to the server configuration just yet.
In the meantime, I’m considering using Google Search Console to manually deindex the /public URLs one by one. Would this be a reasonable temporary solution until I can properly configure the server and fix the issue?
If anyone has dealt with a similar situation, I’d appreciate your advice! Also, if you have recommendations on how to set up Laravel in production to avoid exposing /public, feel free to share.
Thanks in advance!