× Here you can get community support related to ReDJ.

Redirect URL containing .jsp

  • MoBogomips
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #4004 by MoBogomips
Redirect URL containing .jsp was created by MoBogomips
Our site moved and we needed to redirect the traffic to the new site. Simple redirects are working to the main page but we ran across a problem that has stumped us.

We need to redirect
marlinsgofast.com/EvSignup.jsp?event_id=463763&team=recmsmhmwa
to
teamunify.com/EvSignup.jsp?event_id=463763&team=recmsmhmwa

(Actually we need to redirect anything with EvSignup.jsp in it). Note this page, or any .jsp pages, do not exist on the old site.

From: EvSignup\.jsp\?event_id=463763\&team=recmsmhmwa
To : teamunify.com/EvSignup.jsp?event_id=463763&team=recmsmhmwa

But I get a 404 error from my host. Note that we do not have any jsp pages in our old site.

I also tried a rule

From: Ev*
To : teamunify.com/EvSignup.jsp?event_id=463763&team=recmsmhmwa

That works for most URLs with Ev in them but never works if there's a . in the URL
For example marlinsgofast.com/EvSignup entered into a browser will redirect just fine but marlinsgofast.com/EvSignup.jsp does not

Even marlinsgofast.com/EvSignup. does not work.

I hope I have explained this clearly. I can't seem to get the expression correct in the From: field.

Thank you

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

  • MoBogomips
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 10 months ago #4005 by MoBogomips
Replied by MoBogomips on topic Redirect URL containing .jsp
The problem is solved after finally understanding the advice given to other posters of modifying .htaccess to include
ErrorDocument 404 /

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

More
8 years 10 months ago - 8 years 10 months ago #4006 by admin
Replied by admin on topic Redirect URL containing .jsp
Hi and sorry for delay.
Yes, your rules are correct and all special chars seem properly escaped, the ErrorDocument is needed to pass ANY error 404 request to Joomla, otherwise it is managed by the web server itself.

The best rule you can create is the following:
From URL: ^/EvSignup\.jsp
Request only: true (checked)

I guess you don't have the EvSignup.jsp page anymore... :)

Kind regards,
Luigi
Last edit: 8 years 10 months ago by admin.

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

Time to create page: 0.112 seconds