× Here you can get community support related to ReDJ.

Cannot redirect URL ending in docx

  • eddie_konczal
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 weeks ago #986 by eddie_konczal
Cannot redirect URL ending in docx was created by eddie_konczal
We are moving a site from non-Joomla! to Joomla. The original site has some relative URLs pointing to download files that do not work on the new site. I was able to redirect a PDF link using core Joomla! Redirect, but cannot set up a similar redirect using either Redirect or ReDJ.

Here is what I'm trying to redirect:

www.sas.rutgers.edu/cms/irw/IRW%20Decolonizing%20Gender%20edited%20Feb%2012%202012.docx

to

www.sas.rutgers.edu/cms/irw/images/learningcommunity/LC%20Fall%2012%20Application.pdf

but it does not work.

Please note that

www.sas.rutgers.edu/cms/irw/IRW%20Decolonizing%20Gender%20edited%20Feb%2012%202012.pdf

to

www.sas.rutgers.edu/cms/irw/images/learningcommunity/LC%20Fall%2012%20Application.pdf

DOES work (using core Joomla! Redirect).

Here is my ReDJ syntax:

From URL *
/IRW%20Decolonizing%20Gender%20edited%20Feb%2012%202012.docx

To URL *
www.sas.rutgers.edu/cms/irw/images/learningcommunity/LC%20Fall%2012%20Application.pdf

Redirect = 301
Case sensitive = yes
Request Only = yes
Decode URL = yes

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

More
11 years 2 weeks ago #989 by admin
Replied by admin on topic Cannot redirect URL ending in docx
Try to set Decode URL to no and let me know...

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

  • eddie_konczal
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 weeks ago #992 by eddie_konczal
Replied by eddie_konczal on topic Cannot redirect URL ending in docx
Thanks for the tip - but it didn't work.

I still get this page:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
www.sas.rutgers.edu
Fri Apr 19 09:04:33 2013
Apache

What is a little strange is that the above 404 page differs from the usual type of 404 page I get:

404 - Article not found

You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.

Please try one of the following pages:

Home Page

If difficulties persist, please contact the System Administrator of this site and report the error below..

Article not found

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

More
11 years 2 weeks ago #994 by admin
Replied by admin on topic Cannot redirect URL ending in docx
Ok,
so you just need to add this at the end of your .htaccess file:
ErrorDocument 404 /

The reason is, now you are getting the error page directly from Apache, so no way for Joomla and ReDJ to manage the redirect. With this directive you are telling Apache to let manage these errors to Joomla.

Let me know,
Luigi

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

  • eddie_konczal
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 week ago #1004 by eddie_konczal
Replied by eddie_konczal on topic Cannot redirect URL ending in docx
Thanks for the suggestion; I modified .htaccess accordingly. It still does not work - but now I get a different error:

Not Found

The requested URL /cms/irw/IRW Decolonizing Gender edited Feb 12 2012.docx was not found on this server.

Additionally, a 301 Moved Permanently error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at www.sas.rutgers.edu Port 80

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

More
11 years 1 week ago #1007 by admin
Replied by admin on topic Cannot redirect URL ending in docx
It doesn' like to Apache. Send me your .htaccess file.

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

Time to create page: 0.104 seconds