Siropu
Well-known member
This add-on does internal redirects via PHP, you need .htaccess redirects. In .htaccess you have to escape special charactershow do I use the regex redirects?
?.
with \
\?
\.
This add-on does internal redirects via PHP, you need .htaccess redirects. In .htaccess you have to escape special charactershow do I use the regex redirects?
?.
with \
\?
\.
Yes. Just discovered that myself and came back to edit my post above. Thanks!There’s a tab on the same page, admin.php?404-not-found/&redirect=1
Better to avoid making changes directly to the database wherever possible.They are in the database table siropu_custom_404_page_not_found
face:b00c
(example ip: 2a03:2880:11ff:1::face:b00c
). it might already be supported but i can't tell how to get rid of these entries!XF\Db\Exception: MySQL fetch error [2014]: Commands out of sync; you can't run this command now in src/XF/Db/AbstractStatement.php at line 228
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 134
XF\Db\Mysqli\Statement->fetchRowValues() in src/XF/Db/AbstractStatement.php at line 93
XF\Db\AbstractStatement->fetchAliasGrouped() in src/XF/Mvc/Entity/Finder.php at line 1381
XF\Mvc\Entity\Finder->fetch() in src/addons/Siropu/Custom404Page/Admin/Controller/NotFound.php at line 127
Siropu\Custom404Page\Admin\Controller\NotFound->actionIndex() in src/XF/Mvc/Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 261
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 488
XF::runApp() in admin.php at line 13
I also see those in Settings > Crawl stats > Crawl requests: Not found (404) in Google Search Console, so I would rather choose to fix them than to ignore them. )You would have to ignore them. They are temporarily cached search results from my understanding. At best I suppose you can do a regex redirect to unified page.
https://xenforo.com/community/search/3577132/?q=Apple&o=relevance
Best to block indexing of these urls through robots file. These links do not exist anywhere. Some members might end up posting them in posts. But Google has no business accessing them.
https://xenforo.com/community/search/3577132/?q=Apple&o=relevance
Allow: /search/$
Disallow: /search/*
Don't bother. With the robots.txt change they will eventually drop out of the index without any additional action on your part. Indeed, all 404s will drop out eventually. Google attempts to recrawl those for a while just in case it was a temporary anomaly with your server but that is the whole point of 404s: to tell visitors and search engines that the page no longer exists at that URL.so I guess to get rid of already indexed by Google and listed under 404, I should create a redirect for /search/* to say /search/.
what would be the code and where to put it?
yeah, I mean in this addon. I see how to set individual page redirects, but can't figure out how to set that regex redirect you mentioned.If you do want to create them, create in this addon
We use essential cookies to make this site work, and optional cookies to enhance your experience.