-
- 416 Posts
Anyone else with this problem? I've got several sites to fix. Not sure how to zero in on the problem.
-
- 75 Posts
I'm the one who originally posted the question, and I still haven't found a solution, but I haven't been actively investigating it much lately either. On my site, the Friendly URLs work great, but the index.php?id=x string no longer converts to the friendly URL in the address bar. The page shows up just fine, but the URL isn't what I want it to be. At one point it used to forward correctly. I'm not sure if an upgrade to MODX is the culprit, or if there's something else going on.
-
- 24,544 Posts
I agree that it's duplicate content, but how would a search engine ever visit the ID-based URL? I can't imagine a real-world situation where this would result in a penalty, but maybe I'm missing something.
-
- 416 Posts
Bob
I'm not sure either how it would be found. I suppose it's possible it was indexed before the site went live with friendly URLs.
I agree a real world penalty may be minimal, but SEO folks, hired by our clients want these things fixed so they get good grades from their clients and reports from the tools they use. So clients care about this "technicality". I know my client wants it corrected because their shouldn't be ANY duplicate content.
Plus it seems to me that something is not working correctly somewhere be it Modx, .htaccess or some server settings.
My two cents. . .
-
- 24,544 Posts
That makes sense, but I wonder where the testing software is getting those ID-based URLs. Have you checked your site map (if there is one)?
Have you deleted all the core/cache files since upgrading to 2.5.1?
As a workaround, it might be possible to add a plugin connected to OnHandleRequest that would forward to the friendly URL version with a 302, moved permanently response.
-
- 416 Posts
The xml site map has no index.php?in=x URLs.
Yes I've cleared the cache.
I might try the redirect for some but for some of my sites that may not be workable. because there are two many pages and I suspect it would be a future maintenance issue if pages get new names/url alias.
-
- 24,544 Posts
Good point. I wish I could think of something that would cause that.
-
- 932 Posts
I don't think it's a problem to be figured out to be honest. URLS can be accessed by both either with a query on the index or a friendly URL. If your hard coded links aren't converting, which they wouldn't, you would just need to Hardcover in the friendly URL.
-
- 932 Posts
Also just to point out if your SEO guys are picking up the id links and it's not present in the site map that's probably because their SEO tool is picking it up from the anchor links that are hard coded in the page, not the xml site map.