Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

NEW! 404 Redirect Handler for Artio JoomSEF
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.

TOPIC: NEW! 404 Redirect Handler for Artio JoomSEF

Re:NEW! 404 Redirect Handler for Artio JoomSEF 17 years, 11 months ago #1105

  • davidwhthomas
Just to let you know I published the new version this morning and it's now available on Joomla.org:

extensions.joomla.org/component/option,c...k_id,1519/Itemid,35/

I've added support for

section/category/2.html, .../123.php etc... URLs to redirect to default index

as mentioned in above post.

To install, you can just overwrite the existing files with the new ones in:

administrator/component/404_redirect/

cheers,

DT
<br><br>Post edited by: davidwhthomas, at: 2006/12/19 22:30
The topic has been locked.

Re:NEW! 404 Redirect Handler for Artio JoomSEF 17 years, 11 months ago #1109

Hi David,

I applied the lastest version of 404 Redirect Handler for Artio, and I still see an issue.

Here is what I do (I do use Joom!fish):
1. Create and publish a component in &quot;top menu&quot; (with Link - Component Item), and the link created in JoomSef for this menu item which is generated by default, is (SEF_Url Real_Url ): en/sitemap/ index.php?Itemid=120&amp;lang=en&amp;option=com_joomap
2. Create and publish the same component in &quot;main menu&quot; (with Link - Component Item), and after that the link created in JoomSef for this menu item will be: en/sitemap/2.html index.php?Itemid=90&amp;lang=en&amp;option=com_joomap

I see that the Itemid (120 and 90) is different for those two URLs, but should not the SEF Url link be the same in both cases, since the resulting page is the same? This issue should not be fixed by point 2 from your component features:
2. Redirect erroneous section/category/2.html, .../3.php etc... URLs to default index page ?

My JoomSEF Configuration parameters are:
Use Title Alias?: Full Title
File suffix: .html
Default index file.: (blank)
Show Section? - No
Show Category? - Yes
Language as path? - Yes
Always use language? - Yes
Translate URLs? - Yes

Default 404 Page is looking like this (the one from JoomSEF Configuration page):
{rdaddphp file=administrator/components/com_404_redirect/404_redirect.php}
404: Not Found
Sorry, but the content you requested could not be found

Is there something which I missed, or the fix is not for this kind of problem?

Thank you for your hard work!
Sopra
The topic has been locked.

Re:NEW! 404 Redirect Handler for Artio JoomSEF 17 years, 11 months ago #1110

That's from ArtioSEF. And because ArtioSEF generates both URL's, the David's solution is not kicking in - acts only when the URL is not found. (Hope, I'm right here, but that's what I understand from my experiments)
On my 7500+ page site David's solution is working great, I still have issues with ArtioSEF.


PS. a problem, tough, here are 2 successive lines from log:

20/12/2006 10:20:49 84.227.3.117 obfuscator/3.html www.java-tips.org/obfuscator/ redirect

That's okay, this is the expected behaviour, but then what happens?

20/12/2006 10:20:50 84.227.3.117 obfuscator/ www.java-tips.org/java-applications/obfu...in-obfuscator-2.html redirect

obfuscator is a category, marvin-obfuscator is an item from that category... So in final, instead to land on the category page, the user is &quot;ported&quot; to an item's page...
Any ideea?<br><br>Post edited by: webgobe, at: 2006/12/20 19:44
The topic has been locked.

Re:NEW! 404 Redirect Handler for Artio JoomSEF 17 years, 11 months ago #1111

  • davidwhthomas
Hi Sopra,

Szekely is right, the 404 redirect component is only activated when a page is not found.

It's purpose is to handle 404 errors gracefully, redirecting the user to the correct item or to a search.

If Artio is generating two different URLs for the same item, that is an issue with Artio SEF, not 404 redirect.

Secondly, did you install the RD Add PHP mambot / plugin ?

You posted your default 404 page and the mambot tag shouldn't show up if that mambot is installed.

You can get it here :
www.run-digital.com/download/mambots.html

Add PHP is required for 404 Redirect to function.

regards,

DT
The topic has been locked.

Re:NEW! 404 Redirect Handler for Artio JoomSEF 17 years, 11 months ago #1112

  • davidwhthomas
Hi Szekely,

Regarding your comment, 404 redirect will approach the URL like this:

1) given www.java-tips.org/obfuscator/2.html
2) page doesn't exist, try www.java-tips.org/obfuscator/
3) page doesn't exist, run a title search on obfuscator and redirect:
This gives: www.java-tips.org/java-applications/obfu...in-obfuscator-2.html

It looks like you used to have 'show category' only turned on in Artio config and now you have 'show section' as well and the erroneous link is based on the old 'category only' style.

I suppose another way to handle such URLs would be to check if the title search term is the name of a category or section and if so, to redirect to the category or section index.

What do you think?<br><br>Post edited by: davidwhthomas, at: 2006/12/20 20:34
The topic has been locked.

Re:NEW! 404 Redirect Handler for Artio JoomSEF 17 years, 11 months ago #1113

Hello,

thank you for the component. It sounds like it's exactly what I am looking for.
Unfortunatelly I am having problems installing the component.

I am trying to install it on Joomla 1.0.11. RD AddPHP is installed and published.
I am using JoomSEF 1.3.1 and it is enabled.

When I run the installation I am getting &quot;Installation Failed&quot;.
Below is the error message:

SQL Error DB function failed with error number 1064
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 COMMENT='404 log'' at line 11 SQL=CREATE TABLE IF NOT EXISTS `joom_404_log` ( `id` int(11) NOT NULL auto_increment, `ip` varchar(100) default NULL, `time` varchar(100) default NULL, `referer_url` varchar(255) default NULL, `requested_url` varchar(255) default NULL, `redirected_url` varchar(255) default NULL, `searchterm` varchar(255) default NULL, `type` varchar(100) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='404 log';
SQL =

CREATE TABLE IF NOT EXISTS `joom_404_log` (
`id` int(11) NOT NULL auto_increment,
`ip` varchar(100) default NULL,
`time` varchar(100) default NULL,
`referer_url` varchar(255) default NULL,
`requested_url` varchar(255) default NULL,
`redirected_url` varchar(255) default NULL,
`searchterm` varchar(255) default NULL,
`type` varchar(100) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='404 log';


Any ideas why I am not able to instal it?

Thank you.
The topic has been locked.
Přihlášení uživatele Prázdný