![]() |
strange redirects urlS - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: strange redirects urlS (/showthread.php?tid=91501) |
strange redirects urlS - gabriel_fucci - 08-21-2024 Hello! Checking my SEO search console, I found strange urls without indexing, it should redirect to 404 or 301, but it redirects me with NS_ERROR_REDIRECT_LOOP and the search console warns me of the wrong redirect. The urls are like "/index.phpproduct/R?3447087=uscrivesv", "/index.phpreview/item/list", "/index.phpconfig/login"," /index.phpproduct/S?2552902=znonpraedialy" and much others... my CI4 htaccess Code: # Redirect Trailing Slashes... RE: strange redirects urlS - advanceconsent - 09-23-2024 The URLs such as `/index.phpproduct/R...` are missing slashes between `index.php` and the path. This can cause routing issues in CodeIgniter or trigger the redirect loop. You should make sure your URL generation function in your application is properly constructing URLs with the correct structure. |