Custom 404 Page by Siropu

Custom 404 Page by Siropu 1.1.7

No permission to download
for example... one redirect rule for all dead posts in existing thread like:
By default, links to deleted posts redirect to the parent thread.

As for the forum redirect, it is not possible because you don't know the forum from the URL.

This is the page I'm want it to display, but when an improper URL is being entered, there is no redirect to that page represented by this template: SIROPU_CUSTOM_404_PAGE_CONTAINER.
Haven't tested it on 2.2 yet but I don'r see why it wouldn't work.
 
By default, links to deleted posts redirect to the parent thread.
right. so i am seeing a lot of entries like this: https://forumname.co/threads/63019/post-1185046. and most of the times there would also be an entry to https://forumname.co/threads/63019/. since the thread is deleted... and there are multiple entries for posts from this thread. i was just wondering... if it is possible to set a redirect like:

https://forumname.co/threads/63019/* > https://forumname.co/f/forum/

so that i do not have to create a fresh entry for every dead post link! basically one manual entry for each dead thread and posts inside that thread. manually not automated as you said, xenforo url structure does not point to forum in thread links.
 
this is useful thanks. would have been great if this could be added on the fly from the primary interface. like when you click the add redirection link, it shows two fields instead of one. and one could just edit the first field and convert it into regex to cover more links instead of just one. but this would do. thanks again!
 
Alright. Sorry to bother you again. I did some test additions to regex field and I think the regex you provided seems to be for wildcard entries.

What I entered:
regex: @https://broadbandforum\.co/afup/@
replacement: https://broadbandforum.co/
test url: https://broadbandforum.co/afup/test
redirection: https://broadbandforum.co/test

regex: @https://broadbandforum\.co/threads/63019/@
replacement: https://broadbandforum.co/
test url: https://broadbandforum.co/threads/63019/post-1194301
redirection: https://broadbandforum.co/post-1194301

(I am completely clueless when it comes to regex, so I might be making some rather stupid mistake in my entries!)
 
If you want to redirect those, try: @https://broadbandforum\.co/search/[0-9]+/$@
As for custom templates, enable "Display content only" and use your own css/html template.
 
another query. this is for ignore urls feature.

it seems that some bots are just loading random urls trying to find a wordpress installation. seeing a lot of hits to links like:

https://forum.co//sito/wp-includes/wlwmanifest.xml
https://forum.co//cms/wp-includes/wlwmanifest.xml
https://forum.co//site/wp-includes/wlwmanifest.xml
https://forum.co//wp2/wp-includes/wlwmanifest.xml
https://forum.co//test/wp-includes/wlwmanifest.xml

and so on.

i put this in ignore url box:
https://forum.co/*/wlwmanifest.xml

but this does not seem to help. also can i use multiple * in a single rule? there is another series of random hits on a url structure similar to
https://forum.co/*/?replytocom*. this seems to be connected to wordpress comment forms.
 
Ooh. So the filter would work with just keywords? no need to put in whole url structure? Why did you put * at the end though! Would putting in wlwmanifest.xml alone would work for these urls?

Enhancement suggestion. Link ips to https://ipinfo.io/IPADDRESS. I imagine I can do this myself by editing a template so no biggie.

Had a bit more feedback after using it for a day now.. but that would be too much to ask for a free 😁 addon. The table has way too much data compressed in very little space. Referrer column is pretty useless for me (i understand it might not be for others) because referral information is no longer passed on by search engines and also by secure links iirc. The redirect URL is mostly hidden in the with redirect table. add redirect link could essentially be an icon and might not need an independent column wasting so much space! Maybe an alternative light UI with most of the information columns hidden (referrer, ip, dates) for folks who just want to set redirects for dead URLs where they can see the target url in the same table. Just some thoughts.

Solid product though. Thanks for this. Time to post a review!
 
Like this? https://www.maggotdrowning.com/search/kkimag

Add the following into the Options: Custom 404 Page, 404 Content field...


Code:
<xf:title>{{ phrase('siropu_custom_404_page_title') }}</xf:title>
<xf:h1 hidden="true" />
<div class="block">
    <div class="block-container">
        <h3 class="block-header">{{ phrase('siropu_custom_404_page_title') }}</h3>
        <div class="block-body block-row">
            {{ phrase('siropu_custom_404_page_requested_page_could_not_be_found') }}
        </div>
        <div style="width:50%;margin:auto;">
            <a href="/search/"><img src="../images/Error404.jpg" alt="Click to perform a Search"></img></a>
                </div>
                <div class="menu-footer">
                    <span class="menu-footer-controls">
                        <a href="/search/"><xf:button type="submit" class="button--primary" icon="search" /></a>                                    
                    </span>
                </div>
                <xf:csrf />
        </div>

Create an image 'Error404.jpg' and place it into your 'images' folder in the root of your website (not forum root)
 
Last edited:
Top Bottom