GetSimple Support Forum
PROBLEM GetSimpleCMS allowing invalid URLs - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: PROBLEM GetSimpleCMS allowing invalid URLs (/showthread.php?tid=17104)



GetSimpleCMS allowing invalid URLs - AnthonyV - 2023-09-28

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


RE: GetSimpleCMS allowing invalid URLs - islander - 2023-09-28

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


RE: GetSimpleCMS allowing invalid URLs - Bigin - 2023-09-28

This has already been mentioned here http://get-simple.info/forums/showthread.php?tid=16850


RE: GetSimpleCMS allowing invalid URLs - AnthonyV - 2023-09-28

(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.


RE: GetSimpleCMS allowing invalid URLs - Bigin - 2023-09-29

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 
});