Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM GetSimpleCMS allowing invalid URLs
#1
Brick 
The GetSimple CMS allows invalid URLs because it only seems to interpret the first and last portions of the URL.

For example, in the following URL [http://gs1000.showme.zone/this/URL/is/invalid/article-029/] the bolded sections is invalid.   The valid URL is [http://gs1000.showme.zone/article-029/].

I could do the same thing with a number of other GetSimpleCMS sites listed in [http://get-simple.info/forums/forumdisplay.php?fid=9]

This can cause all kinds of weird errors when you are using relative URLs and it also messes up Google indexing metrics.

At the moment I am considering detecting this issue by comparing the Canonical URL with the actual URL and forcing a redirect 301 or a 404 error...

Anthony
Reply
#2
Doesnt an invalid url give a 404, I thought this was done by default?
Strange.
Yes, any solution would be welcome.
Interesting discovery.


GS Community Edition with php8.x compatibility, new features and much more!  Support Me


Reply
#3
This has already been mentioned here http://get-simple.info/forums/showthread.php?tid=16850
Reply
#4
(2023-09-28, 19:14:31)Bigin Wrote: This has already been mentioned here http://get-simple.info/forums/showthread.php?tid=16850

Thanks for letting me know.  I guess my searching skills were off.

I will continue the conversation there.  I am aiming for a solution.
Reply
#5
I don't believe GS provides a native solution for this issue, at least not that I'm aware of. But seriously, why would the Google Search Engine bother visiting a URL like this `http://gs1000.showme.zone/this/URL/is/invalid/article-029/` when it's not listed anywhere?

Anyway, you still have the option to create your own solution. You could use a filter, like "data_index":
PHP Code:
add_filter('data_index', function($data) { 
    // your routing logic 
}); 
Reply




Users browsing this thread: 1 Guest(s)