GetSimple Support Forum

Full Version: GetSimpleCMS allowing invalid URLs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Doesnt an invalid url give a 404, I thought this was done by default?
Strange.
Yes, any solution would be welcome.
Interesting discovery.
This has already been mentioned here http://get-simple.info/forums/showthread.php?tid=16850
(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.
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 
});