× Here you can get community support related to ReDJ.

Can't create the correct redirect, please help

More
10 years 8 months ago #1433 by Danil
Hello, just installed this extension, but I can't create a redirect correctly, I get a standart 404 error
This one should be redirected
http://milloret.com/index.php?option=com_content&view=article&id=58&Itemid=72&lang=es

to
http://milloret.com/index.php/es/seo-america-es

Please, tell what should I put in "FROM URL" and "TO URL"

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #1436 by admin
Hi,
the error page comes from Apache, so enable .htaccess and add this line at the end:
ErrorDocument 404 /

After this, change your rule to match the URL you need to redirect. The rule is a regular expression, so you need to escape special chars to specify them literally:
From URL: ^/index\.php\?option=com_content&view=article&id=58&Itemid=72&lang=es
To URL: http://{siteurl}/index.php/es/seo-america-es
Request only: true (checked)

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #1437 by Danil

Hi,
so enable .htaccess and add this line at the end:
ErrorDocument 404 /

Done

Then I inserted this data you gave me to the ReDJ redirect, exacty as it is, but I still get the same 404 error..



Maybe I should change something here?:
From URL: ^/index\.php\?option=com_content&view=article&id=58&Itemid=72&lang=es
To URL: http://{siteurl}/index.php/es/seo-america-es
Request only: true (checked)
Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #1439 by admin
Sorry, but it seems the error document option is not taken. Pls, send me the .htaccess file.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #1442 by Danil
Here my htaccess:
DirectoryIndex index.php index.html


<Filesmatch ".(php)$">
order deny,allow
deny from all
</Filesmatch>

<Filesmatch "^index.php">
order allow,deny
allow from all
</Filesmatch>

<Filesmatch "^index2.php">
order deny,allow
allow from all
</Filesmatch>

<Filesmatch "^index3.php">
order deny,allow
allow from all
</Filesmatch>

<Filesmatch "^livezilla.php">
order deny,allow
allow from all
</Filesmatch>

<Filesmatch "^phpinfo.php">
order deny,allow
allow from all
</Filesmatch>

ErrorDocument 404 /

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #1444 by admin
Hi,
this is not the standard Joomla .htaccess, but the option seems right. Check that also the name is ".htaccess" (must start with a dot).

If the problem persists, you should contact your sys adm to check why you cannot add an ErrorDocument option, that is needed to manage all kind of URLs. Maybe is disabled or not allowed (e.g. AllowOverride in the Directory).

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.133 seconds